grpc 1.2.5 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Makefile +1434 -399
- data/etc/roots.pem +34 -150
- data/include/grpc/grpc.h +71 -0
- data/include/grpc/impl/codegen/atm.h +5 -0
- data/include/grpc/impl/codegen/atm_gcc_atomic.h +6 -0
- data/include/grpc/impl/codegen/atm_gcc_sync.h +2 -0
- data/include/grpc/impl/codegen/atm_windows.h +11 -0
- data/include/grpc/impl/codegen/grpc_types.h +54 -13
- data/include/grpc/impl/codegen/port_platform.h +15 -1
- data/include/grpc/support/alloc.h +2 -1
- data/include/grpc/support/sync.h +4 -0
- data/include/grpc/support/tls.h +1 -1
- data/src/core/ext/census/gen/trace_context.pb.h +1 -1
- data/src/core/ext/census/grpc_filter.c +14 -10
- data/src/core/ext/census/grpc_plugin.c +3 -1
- data/src/core/ext/census/trace_label.h +1 -1
- data/src/core/ext/census/trace_propagation.h +1 -1
- data/src/core/ext/census/trace_status.h +1 -1
- data/src/core/ext/census/trace_string.h +1 -1
- data/src/core/ext/census/tracing.h +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/channel_connectivity.c +56 -27
- data/src/core/ext/{client_channel → filters/client_channel}/client_channel.c +407 -202
- data/src/core/ext/{client_channel → filters/client_channel}/client_channel.h +10 -6
- data/src/core/ext/{client_channel → filters/client_channel}/client_channel_factory.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/client_channel_factory.h +4 -4
- data/src/core/ext/{client_channel → filters/client_channel}/client_channel_plugin.c +12 -7
- data/src/core/ext/{client_channel → filters/client_channel}/connector.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/connector.h +3 -5
- data/src/core/ext/{client_channel → filters/client_channel}/http_connect_handshaker.c +6 -6
- data/src/core/ext/{client_channel → filters/client_channel}/http_connect_handshaker.h +3 -3
- data/src/core/ext/{client_channel → filters/client_channel}/http_proxy.c +4 -4
- data/src/core/ext/{client_channel → filters/client_channel}/http_proxy.h +3 -3
- data/src/core/ext/{client_channel → filters/client_channel}/lb_policy.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/lb_policy.h +4 -4
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb.c +22 -20
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb.h +4 -4
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb_channel.h +5 -4
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb_channel_secure.c +2 -2
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/load_balancer_api.c +1 -1
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/load_balancer_api.h +6 -5
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/proto/grpc/lb/v1/load_balancer.pb.c +1 -1
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/proto/grpc/lb/v1/load_balancer.pb.h +0 -0
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/pick_first/pick_first.c +20 -15
- data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/round_robin/round_robin.c +21 -16
- data/src/core/ext/{client_channel → filters/client_channel}/lb_policy_factory.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/lb_policy_factory.h +5 -5
- data/src/core/ext/{client_channel → filters/client_channel}/lb_policy_registry.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/lb_policy_registry.h +4 -4
- data/src/core/ext/{client_channel → filters/client_channel}/parse_address.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/parse_address.h +4 -4
- data/src/core/ext/{client_channel → filters/client_channel}/proxy_mapper.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/proxy_mapper.h +3 -3
- data/src/core/ext/{client_channel → filters/client_channel}/proxy_mapper_registry.c +10 -4
- data/src/core/ext/{client_channel → filters/client_channel}/proxy_mapper_registry.h +4 -4
- data/src/core/ext/{client_channel → filters/client_channel}/resolver.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/resolver.h +4 -4
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.c +350 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +66 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c +319 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c +289 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +64 -0
- data/src/core/ext/{resolver → filters/client_channel/resolver}/dns/native/dns_resolver.c +21 -5
- data/src/core/ext/{resolver → filters/client_channel/resolver}/sockaddr/sockaddr_resolver.c +3 -3
- data/src/core/ext/{client_channel → filters/client_channel}/resolver_factory.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/resolver_factory.h +6 -6
- data/src/core/ext/{client_channel → filters/client_channel}/resolver_registry.c +1 -2
- data/src/core/ext/{client_channel → filters/client_channel}/resolver_registry.h +4 -4
- data/src/core/ext/filters/client_channel/retry_throttle.c +210 -0
- data/src/core/ext/filters/client_channel/retry_throttle.h +65 -0
- data/src/core/ext/{client_channel → filters/client_channel}/subchannel.c +49 -43
- data/src/core/ext/{client_channel → filters/client_channel}/subchannel.h +21 -7
- data/src/core/ext/{client_channel → filters/client_channel}/subchannel_index.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/subchannel_index.h +5 -5
- data/src/core/ext/{client_channel → filters/client_channel}/uri_parser.c +1 -1
- data/src/core/ext/{client_channel → filters/client_channel}/uri_parser.h +3 -3
- data/src/core/ext/{load_reporting → filters/load_reporting}/load_reporting.c +4 -2
- data/src/core/ext/{load_reporting → filters/load_reporting}/load_reporting.h +3 -3
- data/src/core/ext/{load_reporting → filters/load_reporting}/load_reporting_filter.c +17 -14
- data/src/core/ext/{load_reporting → filters/load_reporting}/load_reporting_filter.h +4 -4
- data/src/core/ext/filters/max_age/max_age_filter.c +439 -0
- data/src/core/ext/filters/max_age/max_age_filter.h +39 -0
- data/src/core/ext/transport/chttp2/client/chttp2_connector.c +6 -41
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +1 -1
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.c +2 -2
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c +3 -3
- data/src/core/ext/transport/chttp2/server/chttp2_server.c +2 -2
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c +2 -5
- data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c +2 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.c +449 -204
- data/src/core/ext/transport/chttp2/transport/frame_data.c +10 -7
- data/src/core/ext/transport/chttp2/transport/frame_goaway.c +3 -2
- data/src/core/ext/transport/chttp2/transport/frame_ping.c +37 -7
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +3 -0
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.c +4 -3
- data/src/core/ext/transport/chttp2/transport/frame_settings.c +18 -38
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +1 -29
- data/src/core/ext/transport/chttp2/transport/frame_window_update.c +2 -2
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.c +64 -37
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +11 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parser.c +60 -39
- data/src/core/ext/transport/chttp2/transport/hpack_table.c +2 -2
- data/src/core/ext/transport/chttp2/transport/http2_settings.c +75 -0
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +74 -0
- data/src/core/ext/transport/chttp2/transport/incoming_metadata.c +22 -43
- data/src/core/ext/transport/chttp2/transport/incoming_metadata.h +8 -10
- data/src/core/ext/transport/chttp2/transport/internal.h +24 -2
- data/src/core/ext/transport/chttp2/transport/parsing.c +33 -15
- data/src/core/ext/transport/chttp2/transport/writing.c +56 -10
- data/src/core/lib/channel/channel_args.c +7 -0
- data/src/core/lib/channel/channel_args.h +2 -0
- data/src/core/lib/channel/channel_stack.c +20 -27
- data/src/core/lib/channel/channel_stack.h +18 -16
- data/src/core/lib/channel/compress_filter.c +20 -18
- data/src/core/lib/channel/connected_channel.c +9 -8
- data/src/core/lib/channel/deadline_filter.c +28 -24
- data/src/core/lib/channel/deadline_filter.h +3 -3
- data/src/core/lib/channel/handshaker.c +3 -2
- data/src/core/lib/channel/http_client_filter.c +119 -61
- data/src/core/lib/channel/http_server_filter.c +124 -69
- data/src/core/lib/channel/message_size_filter.c +23 -19
- data/src/core/lib/http/httpcli.c +8 -6
- data/src/core/lib/http/httpcli_security_connector.c +5 -5
- data/src/core/lib/http/parser.c +57 -31
- data/src/core/lib/iomgr/closure.c +15 -0
- data/src/core/lib/iomgr/closure.h +4 -0
- data/src/core/lib/iomgr/combiner.c +8 -0
- data/src/core/lib/iomgr/endpoint_pair.h +2 -3
- data/src/core/lib/iomgr/endpoint_pair_posix.c +10 -7
- data/src/core/lib/iomgr/endpoint_pair_uv.c +2 -3
- data/src/core/lib/iomgr/endpoint_pair_windows.c +9 -6
- data/src/core/lib/iomgr/error.c +360 -177
- data/src/core/lib/iomgr/error.h +31 -33
- data/src/core/lib/iomgr/error_internal.h +30 -9
- data/src/core/lib/iomgr/ev_epoll_linux.c +25 -239
- data/src/core/lib/iomgr/ev_poll_posix.c +11 -7
- data/src/core/lib/iomgr/ev_posix.c +6 -0
- data/src/core/lib/iomgr/ev_posix.h +3 -0
- data/src/core/lib/iomgr/exec_ctx.c +6 -0
- data/src/core/lib/iomgr/executor.c +8 -2
- data/src/core/lib/iomgr/load_file.c +6 -3
- data/src/core/lib/iomgr/lockfree_event.c +238 -0
- data/src/core/{ext/client_channel/initial_connect_string.h → lib/iomgr/lockfree_event.h} +17 -13
- data/src/core/lib/iomgr/pollset.h +4 -0
- data/src/core/lib/iomgr/pollset_windows.c +2 -2
- data/src/core/lib/iomgr/port.h +9 -0
- data/src/core/lib/iomgr/resolve_address_posix.c +15 -9
- data/src/core/lib/iomgr/resolve_address_uv.c +8 -6
- data/src/core/lib/iomgr/resolve_address_windows.c +2 -2
- data/src/core/lib/iomgr/resource_quota.c +19 -4
- data/src/core/lib/iomgr/resource_quota.h +2 -0
- data/src/core/lib/iomgr/sockaddr_utils.c +3 -1
- data/src/core/lib/iomgr/socket_factory_posix.c +110 -0
- data/src/core/lib/iomgr/socket_factory_posix.h +90 -0
- data/src/core/lib/iomgr/socket_utils_common_posix.c +25 -9
- data/src/core/lib/iomgr/socket_utils_posix.h +7 -0
- data/src/core/lib/iomgr/tcp_client.h +0 -4
- data/src/core/lib/iomgr/tcp_client_posix.c +15 -31
- data/src/core/lib/iomgr/tcp_client_uv.c +10 -6
- data/src/core/lib/iomgr/tcp_client_windows.c +9 -19
- data/src/core/lib/iomgr/tcp_posix.c +111 -22
- data/src/core/lib/iomgr/tcp_posix.h +3 -4
- data/src/core/lib/iomgr/tcp_server_posix.c +39 -417
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +135 -0
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.c +221 -0
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c +196 -0
- data/src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c +49 -0
- data/src/core/lib/iomgr/tcp_server_uv.c +43 -16
- data/src/core/lib/iomgr/tcp_server_windows.c +10 -22
- data/src/core/lib/iomgr/tcp_uv.c +16 -13
- data/src/core/lib/iomgr/tcp_windows.c +24 -12
- data/src/core/lib/iomgr/tcp_windows.h +2 -2
- data/src/core/lib/iomgr/timer.h +3 -0
- data/src/core/lib/iomgr/timer_generic.c +257 -72
- data/src/core/lib/iomgr/timer_generic.h +1 -1
- data/src/core/lib/iomgr/timer_heap.c +8 -8
- data/src/core/lib/iomgr/udp_server.c +54 -24
- data/src/core/lib/iomgr/udp_server.h +7 -7
- data/src/core/lib/iomgr/unix_sockets_posix.c +1 -1
- data/src/core/lib/iomgr/unix_sockets_posix_noop.c +2 -1
- data/src/core/lib/iomgr/wakeup_fd_posix.h +1 -1
- data/src/core/lib/profiling/basic_timers.c +1 -1
- data/src/core/lib/security/credentials/credentials.h +1 -1
- data/src/core/lib/security/credentials/google_default/google_default_credentials.c +10 -9
- data/src/core/lib/security/credentials/jwt/json_token.c +1 -1
- data/src/core/lib/security/credentials/jwt/jwt_verifier.c +2 -2
- data/src/core/lib/security/transport/client_auth_filter.c +33 -26
- data/src/core/lib/security/transport/secure_endpoint.c +8 -5
- data/src/core/lib/security/transport/security_connector.c +37 -37
- data/src/core/lib/security/transport/security_connector.h +1 -1
- data/src/core/lib/security/transport/security_handshaker.c +15 -12
- data/src/core/lib/security/transport/server_auth_filter.c +20 -18
- data/src/core/lib/security/transport/tsi_error.c +5 -3
- data/src/core/lib/security/transport/tsi_error.h +1 -1
- data/src/core/lib/{security/util → slice}/b64.c +21 -6
- data/src/core/lib/{security/util → slice}/b64.h +16 -4
- data/src/core/lib/slice/slice.c +4 -2
- data/src/core/lib/slice/slice_buffer.c +16 -14
- data/src/core/lib/support/arena.c +98 -0
- data/src/core/{ext/client_channel/initial_connect_string.c → lib/support/arena.h} +17 -15
- data/src/core/{ext/client_channel/default_initial_connect_string.c → lib/support/atm.c} +14 -5
- data/src/core/lib/support/cpu_linux.c +5 -0
- data/src/core/lib/support/sync.c +4 -0
- data/src/core/lib/support/time.c +4 -10
- data/src/core/lib/support/wrap_memcpy.c +3 -1
- data/src/core/lib/surface/call.c +252 -221
- data/src/core/lib/surface/channel.c +72 -21
- data/src/core/lib/surface/channel.h +8 -0
- data/src/core/lib/surface/completion_queue.c +2 -3
- data/src/core/lib/surface/completion_queue_factory.c +77 -0
- data/src/core/lib/surface/completion_queue_factory.h +51 -0
- data/src/core/lib/surface/init_secure.c +3 -1
- data/src/core/lib/surface/lame_client.c +18 -14
- data/src/core/lib/surface/server.c +43 -41
- data/src/core/lib/surface/validate_metadata.c +8 -4
- data/src/core/lib/surface/version.c +2 -2
- data/src/core/lib/transport/bdp_estimator.h +1 -1
- data/src/core/lib/transport/connectivity_state.c +2 -1
- data/src/core/lib/transport/error_utils.c +17 -17
- data/src/core/lib/transport/error_utils.h +1 -1
- data/src/core/lib/transport/metadata_batch.c +6 -7
- data/src/core/lib/transport/pid_controller.c +1 -0
- data/src/core/lib/transport/service_config.c +12 -0
- data/src/core/lib/transport/service_config.h +6 -0
- data/src/core/lib/transport/transport.c +29 -17
- data/src/core/lib/transport/transport.h +85 -42
- data/src/core/lib/transport/transport_impl.h +5 -3
- data/src/core/lib/transport/transport_op_string.c +20 -14
- data/src/core/plugin_registry/grpc_plugin_registry.c +8 -0
- data/src/core/{lib/tsi → tsi}/fake_transport_security.c +2 -2
- data/src/core/{lib/tsi → tsi}/fake_transport_security.h +4 -4
- data/src/core/{lib/tsi → tsi}/ssl_transport_security.c +40 -79
- data/src/core/{lib/tsi → tsi}/ssl_transport_security.h +44 -21
- data/src/core/{lib/tsi → tsi}/ssl_types.h +3 -3
- data/src/core/{lib/tsi → tsi}/transport_security.c +2 -2
- data/src/core/{lib/tsi → tsi}/transport_security.h +4 -4
- data/src/core/{lib/tsi → tsi}/transport_security_interface.h +3 -3
- data/src/ruby/ext/grpc/extconf.rb +1 -0
- data/src/ruby/ext/grpc/rb_call_credentials.c +2 -2
- data/src/ruby/ext/grpc/rb_channel.c +520 -93
- data/src/ruby/ext/grpc/rb_channel.h +2 -0
- data/src/ruby/ext/grpc/rb_channel_credentials.c +3 -0
- data/src/ruby/ext/grpc/rb_compression_options.c +5 -2
- data/src/ruby/ext/grpc/rb_event_thread.c +6 -6
- data/src/ruby/ext/grpc/rb_grpc.c +29 -7
- data/src/ruby/ext/grpc/rb_grpc.h +2 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +10 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +15 -0
- data/src/ruby/ext/grpc/rb_server.c +5 -3
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/spec/channel_connection_spec.rb +173 -0
- data/src/ruby/spec/channel_spec.rb +29 -0
- data/src/ruby/spec/generic/rpc_server_pool_spec.rb +27 -17
- data/third_party/cares/ares_build.h +264 -0
- data/third_party/cares/cares/ares.h +636 -0
- data/third_party/cares/cares/ares__close_sockets.c +61 -0
- data/third_party/cares/cares/ares__get_hostent.c +261 -0
- data/third_party/cares/cares/ares__read_line.c +73 -0
- data/third_party/cares/cares/ares__timeval.c +111 -0
- data/third_party/cares/cares/ares_cancel.c +63 -0
- data/third_party/cares/cares/ares_create_query.c +202 -0
- data/third_party/cares/cares/ares_data.c +221 -0
- data/third_party/cares/cares/ares_data.h +72 -0
- data/third_party/cares/cares/ares_destroy.c +108 -0
- data/third_party/cares/cares/ares_dns.h +103 -0
- data/third_party/cares/cares/ares_expand_name.c +205 -0
- data/third_party/cares/cares/ares_expand_string.c +70 -0
- data/third_party/cares/cares/ares_fds.c +59 -0
- data/third_party/cares/cares/ares_free_hostent.c +41 -0
- data/third_party/cares/cares/ares_free_string.c +25 -0
- data/third_party/cares/cares/ares_getenv.c +30 -0
- data/third_party/cares/cares/ares_getenv.h +26 -0
- data/third_party/cares/cares/ares_gethostbyaddr.c +294 -0
- data/third_party/cares/cares/ares_gethostbyname.c +518 -0
- data/third_party/cares/cares/ares_getnameinfo.c +422 -0
- data/third_party/cares/cares/ares_getopt.c +122 -0
- data/third_party/cares/cares/ares_getopt.h +53 -0
- data/third_party/cares/cares/ares_getsock.c +66 -0
- data/third_party/cares/cares/ares_inet_net_pton.h +25 -0
- data/third_party/cares/cares/ares_init.c +2146 -0
- data/third_party/cares/cares/ares_iphlpapi.h +221 -0
- data/third_party/cares/cares/ares_ipv6.h +78 -0
- data/third_party/cares/cares/ares_library_init.c +167 -0
- data/third_party/cares/cares/ares_library_init.h +42 -0
- data/third_party/cares/cares/ares_llist.c +63 -0
- data/third_party/cares/cares/ares_llist.h +39 -0
- data/third_party/cares/cares/ares_mkquery.c +24 -0
- data/third_party/cares/cares/ares_nowarn.c +260 -0
- data/third_party/cares/cares/ares_nowarn.h +61 -0
- data/third_party/cares/cares/ares_options.c +402 -0
- data/third_party/cares/cares/ares_parse_a_reply.c +264 -0
- data/third_party/cares/cares/ares_parse_aaaa_reply.c +264 -0
- data/third_party/cares/cares/ares_parse_mx_reply.c +170 -0
- data/third_party/cares/cares/ares_parse_naptr_reply.c +188 -0
- data/third_party/cares/cares/ares_parse_ns_reply.c +183 -0
- data/third_party/cares/cares/ares_parse_ptr_reply.c +219 -0
- data/third_party/cares/cares/ares_parse_soa_reply.c +133 -0
- data/third_party/cares/cares/ares_parse_srv_reply.c +179 -0
- data/third_party/cares/cares/ares_parse_txt_reply.c +220 -0
- data/third_party/cares/cares/ares_platform.c +11035 -0
- data/third_party/cares/cares/ares_platform.h +43 -0
- data/third_party/cares/cares/ares_private.h +363 -0
- data/third_party/cares/cares/ares_process.c +1359 -0
- data/third_party/cares/cares/ares_query.c +186 -0
- data/third_party/cares/cares/ares_rules.h +125 -0
- data/third_party/cares/cares/ares_search.c +316 -0
- data/third_party/cares/cares/ares_send.c +131 -0
- data/third_party/cares/cares/ares_setup.h +217 -0
- data/third_party/cares/cares/ares_strcasecmp.c +66 -0
- data/third_party/cares/cares/ares_strcasecmp.h +30 -0
- data/third_party/cares/cares/ares_strdup.c +49 -0
- data/third_party/cares/cares/ares_strdup.h +24 -0
- data/third_party/cares/cares/ares_strerror.c +56 -0
- data/third_party/cares/cares/ares_timeout.c +88 -0
- data/third_party/cares/cares/ares_version.c +11 -0
- data/third_party/cares/cares/ares_version.h +24 -0
- data/third_party/cares/cares/ares_writev.c +79 -0
- data/third_party/cares/cares/bitncmp.c +59 -0
- data/third_party/cares/cares/bitncmp.h +26 -0
- data/third_party/cares/cares/config-win32.h +377 -0
- data/third_party/cares/cares/inet_net_pton.c +450 -0
- data/third_party/cares/cares/inet_ntop.c +208 -0
- data/third_party/cares/cares/setup_once.h +554 -0
- data/third_party/cares/cares/windows_port.c +22 -0
- data/third_party/cares/config_darwin/ares_config.h +523 -0
- data/third_party/cares/config_linux/ares_config.h +524 -0
- metadata +164 -68
@@ -31,11 +31,11 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CLIENT_CHANNEL_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CLIENT_CHANNEL_H
|
36
36
|
|
37
|
-
#include "src/core/ext/client_channel/client_channel_factory.h"
|
38
|
-
#include "src/core/ext/client_channel/resolver.h"
|
37
|
+
#include "src/core/ext/filters/client_channel/client_channel_factory.h"
|
38
|
+
#include "src/core/ext/filters/client_channel/resolver.h"
|
39
39
|
#include "src/core/lib/channel/channel_stack.h"
|
40
40
|
|
41
41
|
// Channel arg key for server URI string.
|
@@ -53,12 +53,16 @@ extern const grpc_channel_filter grpc_client_channel_filter;
|
|
53
53
|
grpc_connectivity_state grpc_client_channel_check_connectivity_state(
|
54
54
|
grpc_exec_ctx *exec_ctx, grpc_channel_element *elem, int try_to_connect);
|
55
55
|
|
56
|
+
int grpc_client_channel_num_external_connectivity_watchers(
|
57
|
+
grpc_channel_element *elem);
|
58
|
+
|
56
59
|
void grpc_client_channel_watch_connectivity_state(
|
57
60
|
grpc_exec_ctx *exec_ctx, grpc_channel_element *elem, grpc_pollset *pollset,
|
58
|
-
grpc_connectivity_state *state, grpc_closure *on_complete
|
61
|
+
grpc_connectivity_state *state, grpc_closure *on_complete,
|
62
|
+
grpc_closure *watcher_timer_init);
|
59
63
|
|
60
64
|
/* Debug helper: pull the subchannel call from a call stack element */
|
61
65
|
grpc_subchannel_call *grpc_client_channel_get_subchannel_call(
|
62
66
|
grpc_call_element *elem);
|
63
67
|
|
64
|
-
#endif /*
|
68
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CLIENT_CHANNEL_H */
|
@@ -31,7 +31,7 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#include "src/core/ext/client_channel/client_channel_factory.h"
|
34
|
+
#include "src/core/ext/filters/client_channel/client_channel_factory.h"
|
35
35
|
|
36
36
|
void grpc_client_channel_factory_ref(grpc_client_channel_factory* factory) {
|
37
37
|
factory->vtable->ref(factory);
|
@@ -31,12 +31,12 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CLIENT_CHANNEL_FACTORY_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CLIENT_CHANNEL_FACTORY_H
|
36
36
|
|
37
37
|
#include <grpc/impl/codegen/grpc_types.h>
|
38
38
|
|
39
|
-
#include "src/core/ext/client_channel/subchannel.h"
|
39
|
+
#include "src/core/ext/filters/client_channel/subchannel.h"
|
40
40
|
#include "src/core/lib/channel/channel_stack.h"
|
41
41
|
|
42
42
|
// Channel arg key for client channel factory.
|
@@ -89,4 +89,4 @@ grpc_channel *grpc_client_channel_factory_create_channel(
|
|
89
89
|
grpc_arg grpc_client_channel_factory_create_channel_arg(
|
90
90
|
grpc_client_channel_factory *factory);
|
91
91
|
|
92
|
-
#endif /*
|
92
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CLIENT_CHANNEL_FACTORY_H */
|
@@ -31,19 +31,22 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
+
#include <grpc/support/port_platform.h>
|
35
|
+
|
34
36
|
#include <limits.h>
|
35
37
|
#include <stdbool.h>
|
36
38
|
#include <string.h>
|
37
39
|
|
38
40
|
#include <grpc/support/alloc.h>
|
39
41
|
|
40
|
-
#include "src/core/ext/client_channel/client_channel.h"
|
41
|
-
#include "src/core/ext/client_channel/http_connect_handshaker.h"
|
42
|
-
#include "src/core/ext/client_channel/http_proxy.h"
|
43
|
-
#include "src/core/ext/client_channel/lb_policy_registry.h"
|
44
|
-
#include "src/core/ext/client_channel/proxy_mapper_registry.h"
|
45
|
-
#include "src/core/ext/client_channel/resolver_registry.h"
|
46
|
-
#include "src/core/ext/client_channel/
|
42
|
+
#include "src/core/ext/filters/client_channel/client_channel.h"
|
43
|
+
#include "src/core/ext/filters/client_channel/http_connect_handshaker.h"
|
44
|
+
#include "src/core/ext/filters/client_channel/http_proxy.h"
|
45
|
+
#include "src/core/ext/filters/client_channel/lb_policy_registry.h"
|
46
|
+
#include "src/core/ext/filters/client_channel/proxy_mapper_registry.h"
|
47
|
+
#include "src/core/ext/filters/client_channel/resolver_registry.h"
|
48
|
+
#include "src/core/ext/filters/client_channel/retry_throttle.h"
|
49
|
+
#include "src/core/ext/filters/client_channel/subchannel_index.h"
|
47
50
|
#include "src/core/lib/surface/channel_init.h"
|
48
51
|
|
49
52
|
static bool append_filter(grpc_exec_ctx *exec_ctx,
|
@@ -82,6 +85,7 @@ static bool set_default_host_if_unset(grpc_exec_ctx *exec_ctx,
|
|
82
85
|
void grpc_client_channel_init(void) {
|
83
86
|
grpc_lb_policy_registry_init();
|
84
87
|
grpc_resolver_registry_init();
|
88
|
+
grpc_retry_throttle_map_init();
|
85
89
|
grpc_proxy_mapper_registry_init();
|
86
90
|
grpc_register_http_proxy_mapper();
|
87
91
|
grpc_subchannel_index_init();
|
@@ -96,6 +100,7 @@ void grpc_client_channel_shutdown(void) {
|
|
96
100
|
grpc_subchannel_index_shutdown();
|
97
101
|
grpc_channel_init_shutdown();
|
98
102
|
grpc_proxy_mapper_registry_shutdown();
|
103
|
+
grpc_retry_throttle_map_shutdown();
|
99
104
|
grpc_resolver_registry_shutdown();
|
100
105
|
grpc_lb_policy_registry_shutdown();
|
101
106
|
}
|
@@ -31,8 +31,8 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CONNECTOR_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CONNECTOR_H
|
36
36
|
|
37
37
|
#include "src/core/lib/channel/channel_stack.h"
|
38
38
|
#include "src/core/lib/iomgr/resolve_address.h"
|
@@ -48,8 +48,6 @@ struct grpc_connector {
|
|
48
48
|
typedef struct {
|
49
49
|
/** set of pollsets interested in this connection */
|
50
50
|
grpc_pollset_set *interested_parties;
|
51
|
-
/** initial connect string to send */
|
52
|
-
grpc_slice initial_connect_string;
|
53
51
|
/** deadline for connection */
|
54
52
|
gpr_timespec deadline;
|
55
53
|
/** channel arguments (to be passed to transport) */
|
@@ -87,4 +85,4 @@ void grpc_connector_connect(grpc_exec_ctx *exec_ctx, grpc_connector *connector,
|
|
87
85
|
void grpc_connector_shutdown(grpc_exec_ctx *exec_ctx, grpc_connector *connector,
|
88
86
|
grpc_error *why);
|
89
87
|
|
90
|
-
#endif /*
|
88
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_CONNECTOR_H */
|
@@ -31,7 +31,7 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#include "src/core/ext/client_channel/http_connect_handshaker.h"
|
34
|
+
#include "src/core/ext/filters/client_channel/http_connect_handshaker.h"
|
35
35
|
|
36
36
|
#include <string.h>
|
37
37
|
|
@@ -40,9 +40,9 @@
|
|
40
40
|
#include <grpc/support/log.h>
|
41
41
|
#include <grpc/support/string_util.h>
|
42
42
|
|
43
|
-
#include "src/core/ext/client_channel/client_channel.h"
|
44
|
-
#include "src/core/ext/client_channel/resolver_registry.h"
|
45
|
-
#include "src/core/ext/client_channel/uri_parser.h"
|
43
|
+
#include "src/core/ext/filters/client_channel/client_channel.h"
|
44
|
+
#include "src/core/ext/filters/client_channel/resolver_registry.h"
|
45
|
+
#include "src/core/ext/filters/client_channel/uri_parser.h"
|
46
46
|
#include "src/core/lib/channel/channel_args.h"
|
47
47
|
#include "src/core/lib/channel/handshaker_registry.h"
|
48
48
|
#include "src/core/lib/http/format_request.h"
|
@@ -116,7 +116,7 @@ static void handshake_failed_locked(grpc_exec_ctx* exec_ctx,
|
|
116
116
|
// If we were shut down after an endpoint operation succeeded but
|
117
117
|
// before the endpoint callback was invoked, we need to generate our
|
118
118
|
// own error.
|
119
|
-
error =
|
119
|
+
error = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Handshaker shutdown");
|
120
120
|
}
|
121
121
|
if (!handshaker->shutdown) {
|
122
122
|
// TODO(ctiller): It is currently necessary to shutdown endpoints
|
@@ -226,7 +226,7 @@ static void on_read_done(grpc_exec_ctx* exec_ctx, void* arg,
|
|
226
226
|
char* msg;
|
227
227
|
gpr_asprintf(&msg, "HTTP proxy returned response code %d",
|
228
228
|
handshaker->http_response.status);
|
229
|
-
error =
|
229
|
+
error = GRPC_ERROR_CREATE_FROM_COPIED_STRING(msg);
|
230
230
|
gpr_free(msg);
|
231
231
|
handshake_failed_locked(exec_ctx, handshaker, error);
|
232
232
|
goto done;
|
@@ -31,8 +31,8 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_CONNECT_HANDSHAKER_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_CONNECT_HANDSHAKER_H
|
36
36
|
|
37
37
|
/// Channel arg indicating the server in HTTP CONNECT request (string).
|
38
38
|
/// The presence of this arg triggers the use of HTTP CONNECT.
|
@@ -46,4 +46,4 @@
|
|
46
46
|
/// Registers handshaker factory.
|
47
47
|
void grpc_http_connect_register_handshaker_factory();
|
48
48
|
|
49
|
-
#endif /*
|
49
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_CONNECT_HANDSHAKER_H */
|
@@ -31,7 +31,7 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#include "src/core/ext/client_channel/http_proxy.h"
|
34
|
+
#include "src/core/ext/filters/client_channel/http_proxy.h"
|
35
35
|
|
36
36
|
#include <stdbool.h>
|
37
37
|
#include <string.h>
|
@@ -40,9 +40,9 @@
|
|
40
40
|
#include <grpc/support/log.h>
|
41
41
|
#include <grpc/support/string_util.h>
|
42
42
|
|
43
|
-
#include "src/core/ext/client_channel/http_connect_handshaker.h"
|
44
|
-
#include "src/core/ext/client_channel/proxy_mapper_registry.h"
|
45
|
-
#include "src/core/ext/client_channel/uri_parser.h"
|
43
|
+
#include "src/core/ext/filters/client_channel/http_connect_handshaker.h"
|
44
|
+
#include "src/core/ext/filters/client_channel/proxy_mapper_registry.h"
|
45
|
+
#include "src/core/ext/filters/client_channel/uri_parser.h"
|
46
46
|
#include "src/core/lib/channel/channel_args.h"
|
47
47
|
#include "src/core/lib/support/env.h"
|
48
48
|
|
@@ -31,9 +31,9 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_PROXY_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_PROXY_H
|
36
36
|
|
37
37
|
void grpc_register_http_proxy_mapper();
|
38
38
|
|
39
|
-
#endif /*
|
39
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_PROXY_H */
|
@@ -31,10 +31,10 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_H
|
36
36
|
|
37
|
-
#include "src/core/ext/client_channel/subchannel.h"
|
37
|
+
#include "src/core/ext/filters/client_channel/subchannel.h"
|
38
38
|
#include "src/core/lib/iomgr/polling_entity.h"
|
39
39
|
#include "src/core/lib/transport/connectivity_state.h"
|
40
40
|
|
@@ -206,4 +206,4 @@ grpc_connectivity_state grpc_lb_policy_check_connectivity_locked(
|
|
206
206
|
grpc_exec_ctx *exec_ctx, grpc_lb_policy *policy,
|
207
207
|
grpc_error **connectivity_error);
|
208
208
|
|
209
|
-
#endif /*
|
209
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_H */
|
@@ -106,14 +106,14 @@
|
|
106
106
|
#include <grpc/support/string_util.h>
|
107
107
|
#include <grpc/support/time.h>
|
108
108
|
|
109
|
-
#include "src/core/ext/client_channel/client_channel.h"
|
110
|
-
#include "src/core/ext/client_channel/client_channel_factory.h"
|
111
|
-
#include "src/core/ext/client_channel/
|
112
|
-
#include "src/core/ext/client_channel/
|
113
|
-
#include "src/core/ext/client_channel/
|
114
|
-
#include "src/core/ext/
|
115
|
-
#include "src/core/ext/
|
116
|
-
#include "src/core/ext/
|
109
|
+
#include "src/core/ext/filters/client_channel/client_channel.h"
|
110
|
+
#include "src/core/ext/filters/client_channel/client_channel_factory.h"
|
111
|
+
#include "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h"
|
112
|
+
#include "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h"
|
113
|
+
#include "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h"
|
114
|
+
#include "src/core/ext/filters/client_channel/lb_policy_factory.h"
|
115
|
+
#include "src/core/ext/filters/client_channel/lb_policy_registry.h"
|
116
|
+
#include "src/core/ext/filters/client_channel/parse_address.h"
|
117
117
|
#include "src/core/lib/channel/channel_args.h"
|
118
118
|
#include "src/core/lib/iomgr/combiner.h"
|
119
119
|
#include "src/core/lib/iomgr/sockaddr.h"
|
@@ -847,7 +847,9 @@ static grpc_lb_policy *glb_create(grpc_exec_ctx *exec_ctx,
|
|
847
847
|
* this is the right LB policy to use. */
|
848
848
|
const grpc_arg *arg =
|
849
849
|
grpc_channel_args_find(args->args, GRPC_ARG_LB_ADDRESSES);
|
850
|
-
|
850
|
+
if (arg == NULL || arg->type != GRPC_ARG_POINTER) {
|
851
|
+
return NULL;
|
852
|
+
}
|
851
853
|
grpc_lb_addresses *addresses = arg->value.pointer.p;
|
852
854
|
size_t num_grpclb_addrs = 0;
|
853
855
|
for (size_t i = 0; i < addresses->num_addresses; ++i) {
|
@@ -925,7 +927,7 @@ static void glb_shutdown_locked(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol) {
|
|
925
927
|
}
|
926
928
|
grpc_connectivity_state_set(
|
927
929
|
exec_ctx, &glb_policy->state_tracker, GRPC_CHANNEL_SHUTDOWN,
|
928
|
-
|
930
|
+
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Channel Shutdown"), "glb_shutdown");
|
929
931
|
/* We need a copy of the lb_call pointer because we can't cancell the call
|
930
932
|
* while holding glb_policy->mu: lb_on_server_status_received, invoked due to
|
931
933
|
* the cancel, needs to acquire that same lock */
|
@@ -965,9 +967,9 @@ static void glb_cancel_pick_locked(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol,
|
|
965
967
|
pending_pick *next = pp->next;
|
966
968
|
if (pp->target == target) {
|
967
969
|
*target = NULL;
|
968
|
-
grpc_closure_sched(
|
969
|
-
|
970
|
-
|
970
|
+
grpc_closure_sched(exec_ctx, &pp->wrapped_on_complete_arg.wrapper_closure,
|
971
|
+
GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
|
972
|
+
"Pick Cancelled", &error, 1));
|
971
973
|
} else {
|
972
974
|
pp->next = glb_policy->pending_picks;
|
973
975
|
glb_policy->pending_picks = pp;
|
@@ -989,9 +991,9 @@ static void glb_cancel_picks_locked(grpc_exec_ctx *exec_ctx,
|
|
989
991
|
pending_pick *next = pp->next;
|
990
992
|
if ((pp->pick_args.initial_metadata_flags & initial_metadata_flags_mask) ==
|
991
993
|
initial_metadata_flags_eq) {
|
992
|
-
grpc_closure_sched(
|
993
|
-
|
994
|
-
|
994
|
+
grpc_closure_sched(exec_ctx, &pp->wrapped_on_complete_arg.wrapper_closure,
|
995
|
+
GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
|
996
|
+
"Pick Cancelled", &error, 1));
|
995
997
|
} else {
|
996
998
|
pp->next = glb_policy->pending_picks;
|
997
999
|
glb_policy->pending_picks = pp;
|
@@ -1023,10 +1025,10 @@ static int glb_pick_locked(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol,
|
|
1023
1025
|
grpc_closure *on_complete) {
|
1024
1026
|
if (pick_args->lb_token_mdelem_storage == NULL) {
|
1025
1027
|
*target = NULL;
|
1026
|
-
grpc_closure_sched(
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1028
|
+
grpc_closure_sched(exec_ctx, on_complete,
|
1029
|
+
GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1030
|
+
"No mdelem storage for the LB token. Load reporting "
|
1031
|
+
"won't work without it. Failing"));
|
1030
1032
|
return 0;
|
1031
1033
|
}
|
1032
1034
|
|
@@ -31,14 +31,14 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_GRPCLB_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_GRPCLB_H
|
36
36
|
|
37
|
-
#include "src/core/ext/client_channel/lb_policy_factory.h"
|
37
|
+
#include "src/core/ext/filters/client_channel/lb_policy_factory.h"
|
38
38
|
|
39
39
|
/** Returns a load balancing factory for the glb policy, which tries to connect
|
40
40
|
* to a load balancing server to decide the next successfully connected
|
41
41
|
* subchannel to pick. */
|
42
42
|
grpc_lb_policy_factory *grpc_glb_lb_factory_create();
|
43
43
|
|
44
|
-
#endif /*
|
44
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_GRPCLB_H */
|
@@ -31,10 +31,10 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_GRPCLB_CHANNEL_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_GRPCLB_CHANNEL_H
|
36
36
|
|
37
|
-
#include "src/core/ext/client_channel/lb_policy_factory.h"
|
37
|
+
#include "src/core/ext/filters/client_channel/lb_policy_factory.h"
|
38
38
|
#include "src/core/lib/slice/slice_hash_table.h"
|
39
39
|
|
40
40
|
/** Create the channel used for communicating with an LB service.
|
@@ -53,4 +53,5 @@ grpc_channel_args *get_lb_channel_args(grpc_exec_ctx *exec_ctx,
|
|
53
53
|
grpc_slice_hash_table *targets_info,
|
54
54
|
const grpc_channel_args *args);
|
55
55
|
|
56
|
-
#endif /*
|
56
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_GRPCLB_CHANNEL_H \
|
57
|
+
*/
|
data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb_channel_secure.c
RENAMED
@@ -34,8 +34,8 @@
|
|
34
34
|
#include <grpc/support/alloc.h>
|
35
35
|
#include <grpc/support/string_util.h>
|
36
36
|
|
37
|
-
#include "src/core/ext/client_channel/client_channel.h"
|
38
|
-
#include "src/core/ext/lb_policy/grpclb/grpclb_channel.h"
|
37
|
+
#include "src/core/ext/filters/client_channel/client_channel.h"
|
38
|
+
#include "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h"
|
39
39
|
#include "src/core/lib/channel/channel_args.h"
|
40
40
|
#include "src/core/lib/iomgr/sockaddr_utils.h"
|
41
41
|
#include "src/core/lib/security/credentials/credentials.h"
|
@@ -31,13 +31,13 @@
|
|
31
31
|
*
|
32
32
|
*/
|
33
33
|
|
34
|
-
#ifndef
|
35
|
-
#define
|
34
|
+
#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_LOAD_BALANCER_API_H
|
35
|
+
#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_LOAD_BALANCER_API_H
|
36
36
|
|
37
37
|
#include <grpc/slice_buffer.h>
|
38
38
|
|
39
|
-
#include "src/core/ext/client_channel/
|
40
|
-
#include "src/core/ext/
|
39
|
+
#include "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h"
|
40
|
+
#include "src/core/ext/filters/client_channel/lb_policy_factory.h"
|
41
41
|
|
42
42
|
#ifdef __cplusplus
|
43
43
|
extern "C" {
|
@@ -101,4 +101,5 @@ void grpc_grpclb_initial_response_destroy(
|
|
101
101
|
}
|
102
102
|
#endif
|
103
103
|
|
104
|
-
#endif /*
|
104
|
+
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_LOAD_BALANCER_API_H \
|
105
|
+
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/* Automatically generated nanopb constant definitions */
|
2
2
|
/* Generated by nanopb-0.3.7-dev */
|
3
3
|
|
4
|
-
#include "src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h"
|
4
|
+
#include "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h"
|
5
5
|
|
6
6
|
/* @@protoc_insertion_point(includes) */
|
7
7
|
#if PB_PROTO_HEADER_VERSION != 30
|