grpc 1.49.0.pre1-x64-mingw-ucrt

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.

Files changed (127) hide show
  1. checksums.yaml +7 -0
  2. data/etc/roots.pem +4337 -0
  3. data/grpc_c.32-msvcrt.ruby +0 -0
  4. data/grpc_c.64-msvcrt.ruby +0 -0
  5. data/grpc_c.64-ucrt.ruby +0 -0
  6. data/src/ruby/bin/math_client.rb +140 -0
  7. data/src/ruby/bin/math_pb.rb +34 -0
  8. data/src/ruby/bin/math_server.rb +191 -0
  9. data/src/ruby/bin/math_services_pb.rb +51 -0
  10. data/src/ruby/bin/noproto_client.rb +93 -0
  11. data/src/ruby/bin/noproto_server.rb +97 -0
  12. data/src/ruby/ext/grpc/ext-export-truffleruby.clang +2 -0
  13. data/src/ruby/ext/grpc/ext-export-truffleruby.gcc +7 -0
  14. data/src/ruby/ext/grpc/ext-export.clang +2 -0
  15. data/src/ruby/ext/grpc/ext-export.gcc +7 -0
  16. data/src/ruby/ext/grpc/extconf.rb +163 -0
  17. data/src/ruby/ext/grpc/rb_byte_buffer.c +65 -0
  18. data/src/ruby/ext/grpc/rb_byte_buffer.h +35 -0
  19. data/src/ruby/ext/grpc/rb_call.c +1051 -0
  20. data/src/ruby/ext/grpc/rb_call.h +57 -0
  21. data/src/ruby/ext/grpc/rb_call_credentials.c +341 -0
  22. data/src/ruby/ext/grpc/rb_call_credentials.h +31 -0
  23. data/src/ruby/ext/grpc/rb_channel.c +849 -0
  24. data/src/ruby/ext/grpc/rb_channel.h +34 -0
  25. data/src/ruby/ext/grpc/rb_channel_args.c +155 -0
  26. data/src/ruby/ext/grpc/rb_channel_args.h +38 -0
  27. data/src/ruby/ext/grpc/rb_channel_credentials.c +286 -0
  28. data/src/ruby/ext/grpc/rb_channel_credentials.h +37 -0
  29. data/src/ruby/ext/grpc/rb_completion_queue.c +101 -0
  30. data/src/ruby/ext/grpc/rb_completion_queue.h +36 -0
  31. data/src/ruby/ext/grpc/rb_compression_options.c +471 -0
  32. data/src/ruby/ext/grpc/rb_compression_options.h +29 -0
  33. data/src/ruby/ext/grpc/rb_enable_cpp.cc +22 -0
  34. data/src/ruby/ext/grpc/rb_event_thread.c +145 -0
  35. data/src/ruby/ext/grpc/rb_event_thread.h +21 -0
  36. data/src/ruby/ext/grpc/rb_grpc.c +333 -0
  37. data/src/ruby/ext/grpc/rb_grpc.h +77 -0
  38. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +597 -0
  39. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +901 -0
  40. data/src/ruby/ext/grpc/rb_loader.c +61 -0
  41. data/src/ruby/ext/grpc/rb_loader.h +25 -0
  42. data/src/ruby/ext/grpc/rb_server.c +388 -0
  43. data/src/ruby/ext/grpc/rb_server.h +32 -0
  44. data/src/ruby/ext/grpc/rb_server_credentials.c +259 -0
  45. data/src/ruby/ext/grpc/rb_server_credentials.h +37 -0
  46. data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +218 -0
  47. data/src/ruby/ext/grpc/rb_xds_channel_credentials.h +37 -0
  48. data/src/ruby/ext/grpc/rb_xds_server_credentials.c +170 -0
  49. data/src/ruby/ext/grpc/rb_xds_server_credentials.h +37 -0
  50. data/src/ruby/lib/grpc/3.1/grpc_c.so +0 -0
  51. data/src/ruby/lib/grpc/core/status_codes.rb +135 -0
  52. data/src/ruby/lib/grpc/core/time_consts.rb +56 -0
  53. data/src/ruby/lib/grpc/errors.rb +277 -0
  54. data/src/ruby/lib/grpc/generic/active_call.rb +675 -0
  55. data/src/ruby/lib/grpc/generic/bidi_call.rb +233 -0
  56. data/src/ruby/lib/grpc/generic/client_stub.rb +503 -0
  57. data/src/ruby/lib/grpc/generic/interceptor_registry.rb +53 -0
  58. data/src/ruby/lib/grpc/generic/interceptors.rb +186 -0
  59. data/src/ruby/lib/grpc/generic/rpc_desc.rb +204 -0
  60. data/src/ruby/lib/grpc/generic/rpc_server.rb +551 -0
  61. data/src/ruby/lib/grpc/generic/service.rb +211 -0
  62. data/src/ruby/lib/grpc/google_rpc_status_utils.rb +40 -0
  63. data/src/ruby/lib/grpc/grpc.rb +24 -0
  64. data/src/ruby/lib/grpc/logconfig.rb +44 -0
  65. data/src/ruby/lib/grpc/notifier.rb +45 -0
  66. data/src/ruby/lib/grpc/structs.rb +15 -0
  67. data/src/ruby/lib/grpc/version.rb +18 -0
  68. data/src/ruby/lib/grpc.rb +37 -0
  69. data/src/ruby/pb/README.md +42 -0
  70. data/src/ruby/pb/generate_proto_ruby.sh +52 -0
  71. data/src/ruby/pb/grpc/health/checker.rb +75 -0
  72. data/src/ruby/pb/grpc/health/v1/health_pb.rb +31 -0
  73. data/src/ruby/pb/grpc/health/v1/health_services_pb.rb +62 -0
  74. data/src/ruby/pb/grpc/testing/duplicate/echo_duplicate_services_pb.rb +44 -0
  75. data/src/ruby/pb/grpc/testing/metrics_pb.rb +28 -0
  76. data/src/ruby/pb/grpc/testing/metrics_services_pb.rb +49 -0
  77. data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +17 -0
  78. data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +149 -0
  79. data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +17 -0
  80. data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +152 -0
  81. data/src/ruby/pb/test/client.rb +769 -0
  82. data/src/ruby/pb/test/server.rb +252 -0
  83. data/src/ruby/pb/test/xds_client.rb +415 -0
  84. data/src/ruby/spec/call_credentials_spec.rb +42 -0
  85. data/src/ruby/spec/call_spec.rb +180 -0
  86. data/src/ruby/spec/channel_connection_spec.rb +126 -0
  87. data/src/ruby/spec/channel_credentials_spec.rb +124 -0
  88. data/src/ruby/spec/channel_spec.rb +245 -0
  89. data/src/ruby/spec/client_auth_spec.rb +152 -0
  90. data/src/ruby/spec/client_server_spec.rb +664 -0
  91. data/src/ruby/spec/compression_options_spec.rb +149 -0
  92. data/src/ruby/spec/debug_message_spec.rb +134 -0
  93. data/src/ruby/spec/error_sanity_spec.rb +49 -0
  94. data/src/ruby/spec/errors_spec.rb +142 -0
  95. data/src/ruby/spec/generic/active_call_spec.rb +683 -0
  96. data/src/ruby/spec/generic/client_interceptors_spec.rb +153 -0
  97. data/src/ruby/spec/generic/client_stub_spec.rb +1083 -0
  98. data/src/ruby/spec/generic/interceptor_registry_spec.rb +65 -0
  99. data/src/ruby/spec/generic/rpc_desc_spec.rb +374 -0
  100. data/src/ruby/spec/generic/rpc_server_pool_spec.rb +127 -0
  101. data/src/ruby/spec/generic/rpc_server_spec.rb +748 -0
  102. data/src/ruby/spec/generic/server_interceptors_spec.rb +218 -0
  103. data/src/ruby/spec/generic/service_spec.rb +263 -0
  104. data/src/ruby/spec/google_rpc_status_utils_spec.rb +282 -0
  105. data/src/ruby/spec/pb/codegen/grpc/testing/package_options.proto +28 -0
  106. data/src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto +22 -0
  107. data/src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto +23 -0
  108. data/src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto +41 -0
  109. data/src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto +27 -0
  110. data/src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto +29 -0
  111. data/src/ruby/spec/pb/codegen/package_option_spec.rb +98 -0
  112. data/src/ruby/spec/pb/duplicate/codegen_spec.rb +57 -0
  113. data/src/ruby/spec/pb/health/checker_spec.rb +236 -0
  114. data/src/ruby/spec/server_credentials_spec.rb +104 -0
  115. data/src/ruby/spec/server_spec.rb +231 -0
  116. data/src/ruby/spec/spec_helper.rb +61 -0
  117. data/src/ruby/spec/support/helpers.rb +107 -0
  118. data/src/ruby/spec/support/services.rb +160 -0
  119. data/src/ruby/spec/testdata/README +1 -0
  120. data/src/ruby/spec/testdata/ca.pem +20 -0
  121. data/src/ruby/spec/testdata/client.key +28 -0
  122. data/src/ruby/spec/testdata/client.pem +20 -0
  123. data/src/ruby/spec/testdata/server1.key +28 -0
  124. data/src/ruby/spec/testdata/server1.pem +22 -0
  125. data/src/ruby/spec/time_consts_spec.rb +74 -0
  126. data/src/ruby/spec/user_agent_spec.rb +74 -0
  127. metadata +406 -0
@@ -0,0 +1,901 @@
1
+ /*
2
+ *
3
+ * Copyright 2016 gRPC authors.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+
19
+ #ifndef GRPC_RB_GRPC_IMPORTS_H_
20
+ #define GRPC_RB_GRPC_IMPORTS_H_
21
+
22
+ #include <grpc/support/port_platform.h>
23
+
24
+ #ifdef GPR_WINDOWS
25
+
26
+ #include <windows.h>
27
+
28
+ #include <grpc/compression.h>
29
+ #include <grpc/grpc.h>
30
+ #include <grpc/grpc_posix.h>
31
+ #include <grpc/grpc_security.h>
32
+ #include <grpc/impl/codegen/byte_buffer.h>
33
+ #include <grpc/impl/codegen/log.h>
34
+ #include <grpc/slice.h>
35
+ #include <grpc/slice_buffer.h>
36
+ #include <grpc/support/alloc.h>
37
+ #include <grpc/support/cpu.h>
38
+ #include <grpc/support/log_windows.h>
39
+ #include <grpc/support/string_util.h>
40
+ #include <grpc/support/sync.h>
41
+ #include <grpc/support/thd_id.h>
42
+ #include <grpc/support/time.h>
43
+
44
+ typedef int(*grpc_compression_algorithm_is_message_type)(grpc_compression_algorithm algorithm);
45
+ extern grpc_compression_algorithm_is_message_type grpc_compression_algorithm_is_message_import;
46
+ #define grpc_compression_algorithm_is_message grpc_compression_algorithm_is_message_import
47
+ typedef int(*grpc_compression_algorithm_is_stream_type)(grpc_compression_algorithm algorithm);
48
+ extern grpc_compression_algorithm_is_stream_type grpc_compression_algorithm_is_stream_import;
49
+ #define grpc_compression_algorithm_is_stream grpc_compression_algorithm_is_stream_import
50
+ typedef int(*grpc_compression_algorithm_parse_type)(grpc_slice name, grpc_compression_algorithm* algorithm);
51
+ extern grpc_compression_algorithm_parse_type grpc_compression_algorithm_parse_import;
52
+ #define grpc_compression_algorithm_parse grpc_compression_algorithm_parse_import
53
+ typedef int(*grpc_compression_algorithm_name_type)(grpc_compression_algorithm algorithm, const char** name);
54
+ extern grpc_compression_algorithm_name_type grpc_compression_algorithm_name_import;
55
+ #define grpc_compression_algorithm_name grpc_compression_algorithm_name_import
56
+ typedef grpc_compression_algorithm(*grpc_compression_algorithm_for_level_type)(grpc_compression_level level, uint32_t accepted_encodings);
57
+ extern grpc_compression_algorithm_for_level_type grpc_compression_algorithm_for_level_import;
58
+ #define grpc_compression_algorithm_for_level grpc_compression_algorithm_for_level_import
59
+ typedef void(*grpc_compression_options_init_type)(grpc_compression_options* opts);
60
+ extern grpc_compression_options_init_type grpc_compression_options_init_import;
61
+ #define grpc_compression_options_init grpc_compression_options_init_import
62
+ typedef void(*grpc_compression_options_enable_algorithm_type)(grpc_compression_options* opts, grpc_compression_algorithm algorithm);
63
+ extern grpc_compression_options_enable_algorithm_type grpc_compression_options_enable_algorithm_import;
64
+ #define grpc_compression_options_enable_algorithm grpc_compression_options_enable_algorithm_import
65
+ typedef void(*grpc_compression_options_disable_algorithm_type)(grpc_compression_options* opts, grpc_compression_algorithm algorithm);
66
+ extern grpc_compression_options_disable_algorithm_type grpc_compression_options_disable_algorithm_import;
67
+ #define grpc_compression_options_disable_algorithm grpc_compression_options_disable_algorithm_import
68
+ typedef int(*grpc_compression_options_is_algorithm_enabled_type)(const grpc_compression_options* opts, grpc_compression_algorithm algorithm);
69
+ extern grpc_compression_options_is_algorithm_enabled_type grpc_compression_options_is_algorithm_enabled_import;
70
+ #define grpc_compression_options_is_algorithm_enabled grpc_compression_options_is_algorithm_enabled_import
71
+ typedef void(*grpc_metadata_array_init_type)(grpc_metadata_array* array);
72
+ extern grpc_metadata_array_init_type grpc_metadata_array_init_import;
73
+ #define grpc_metadata_array_init grpc_metadata_array_init_import
74
+ typedef void(*grpc_metadata_array_destroy_type)(grpc_metadata_array* array);
75
+ extern grpc_metadata_array_destroy_type grpc_metadata_array_destroy_import;
76
+ #define grpc_metadata_array_destroy grpc_metadata_array_destroy_import
77
+ typedef void(*grpc_call_details_init_type)(grpc_call_details* details);
78
+ extern grpc_call_details_init_type grpc_call_details_init_import;
79
+ #define grpc_call_details_init grpc_call_details_init_import
80
+ typedef void(*grpc_call_details_destroy_type)(grpc_call_details* details);
81
+ extern grpc_call_details_destroy_type grpc_call_details_destroy_import;
82
+ #define grpc_call_details_destroy grpc_call_details_destroy_import
83
+ typedef void(*grpc_register_plugin_type)(void (*init)(void), void (*destroy)(void));
84
+ extern grpc_register_plugin_type grpc_register_plugin_import;
85
+ #define grpc_register_plugin grpc_register_plugin_import
86
+ typedef void(*grpc_init_type)(void);
87
+ extern grpc_init_type grpc_init_import;
88
+ #define grpc_init grpc_init_import
89
+ typedef void(*grpc_shutdown_type)(void);
90
+ extern grpc_shutdown_type grpc_shutdown_import;
91
+ #define grpc_shutdown grpc_shutdown_import
92
+ typedef int(*grpc_is_initialized_type)(void);
93
+ extern grpc_is_initialized_type grpc_is_initialized_import;
94
+ #define grpc_is_initialized grpc_is_initialized_import
95
+ typedef void(*grpc_shutdown_blocking_type)(void);
96
+ extern grpc_shutdown_blocking_type grpc_shutdown_blocking_import;
97
+ #define grpc_shutdown_blocking grpc_shutdown_blocking_import
98
+ typedef const char*(*grpc_version_string_type)(void);
99
+ extern grpc_version_string_type grpc_version_string_import;
100
+ #define grpc_version_string grpc_version_string_import
101
+ typedef const char*(*grpc_g_stands_for_type)(void);
102
+ extern grpc_g_stands_for_type grpc_g_stands_for_import;
103
+ #define grpc_g_stands_for grpc_g_stands_for_import
104
+ typedef const grpc_completion_queue_factory*(*grpc_completion_queue_factory_lookup_type)(const grpc_completion_queue_attributes* attributes);
105
+ extern grpc_completion_queue_factory_lookup_type grpc_completion_queue_factory_lookup_import;
106
+ #define grpc_completion_queue_factory_lookup grpc_completion_queue_factory_lookup_import
107
+ typedef grpc_completion_queue*(*grpc_completion_queue_create_for_next_type)(void* reserved);
108
+ extern grpc_completion_queue_create_for_next_type grpc_completion_queue_create_for_next_import;
109
+ #define grpc_completion_queue_create_for_next grpc_completion_queue_create_for_next_import
110
+ typedef grpc_completion_queue*(*grpc_completion_queue_create_for_pluck_type)(void* reserved);
111
+ extern grpc_completion_queue_create_for_pluck_type grpc_completion_queue_create_for_pluck_import;
112
+ #define grpc_completion_queue_create_for_pluck grpc_completion_queue_create_for_pluck_import
113
+ typedef grpc_completion_queue*(*grpc_completion_queue_create_for_callback_type)(grpc_completion_queue_functor* shutdown_callback, void* reserved);
114
+ extern grpc_completion_queue_create_for_callback_type grpc_completion_queue_create_for_callback_import;
115
+ #define grpc_completion_queue_create_for_callback grpc_completion_queue_create_for_callback_import
116
+ typedef grpc_completion_queue*(*grpc_completion_queue_create_type)(const grpc_completion_queue_factory* factory, const grpc_completion_queue_attributes* attributes, void* reserved);
117
+ extern grpc_completion_queue_create_type grpc_completion_queue_create_import;
118
+ #define grpc_completion_queue_create grpc_completion_queue_create_import
119
+ typedef grpc_event(*grpc_completion_queue_next_type)(grpc_completion_queue* cq, gpr_timespec deadline, void* reserved);
120
+ extern grpc_completion_queue_next_type grpc_completion_queue_next_import;
121
+ #define grpc_completion_queue_next grpc_completion_queue_next_import
122
+ typedef grpc_event(*grpc_completion_queue_pluck_type)(grpc_completion_queue* cq, void* tag, gpr_timespec deadline, void* reserved);
123
+ extern grpc_completion_queue_pluck_type grpc_completion_queue_pluck_import;
124
+ #define grpc_completion_queue_pluck grpc_completion_queue_pluck_import
125
+ typedef void(*grpc_completion_queue_shutdown_type)(grpc_completion_queue* cq);
126
+ extern grpc_completion_queue_shutdown_type grpc_completion_queue_shutdown_import;
127
+ #define grpc_completion_queue_shutdown grpc_completion_queue_shutdown_import
128
+ typedef void(*grpc_completion_queue_destroy_type)(grpc_completion_queue* cq);
129
+ extern grpc_completion_queue_destroy_type grpc_completion_queue_destroy_import;
130
+ #define grpc_completion_queue_destroy grpc_completion_queue_destroy_import
131
+ typedef void(*grpc_completion_queue_thread_local_cache_init_type)(grpc_completion_queue* cq);
132
+ extern grpc_completion_queue_thread_local_cache_init_type grpc_completion_queue_thread_local_cache_init_import;
133
+ #define grpc_completion_queue_thread_local_cache_init grpc_completion_queue_thread_local_cache_init_import
134
+ typedef int(*grpc_completion_queue_thread_local_cache_flush_type)(grpc_completion_queue* cq, void** tag, int* ok);
135
+ extern grpc_completion_queue_thread_local_cache_flush_type grpc_completion_queue_thread_local_cache_flush_import;
136
+ #define grpc_completion_queue_thread_local_cache_flush grpc_completion_queue_thread_local_cache_flush_import
137
+ typedef grpc_connectivity_state(*grpc_channel_check_connectivity_state_type)(grpc_channel* channel, int try_to_connect);
138
+ extern grpc_channel_check_connectivity_state_type grpc_channel_check_connectivity_state_import;
139
+ #define grpc_channel_check_connectivity_state grpc_channel_check_connectivity_state_import
140
+ typedef int(*grpc_channel_num_external_connectivity_watchers_type)(grpc_channel* channel);
141
+ extern grpc_channel_num_external_connectivity_watchers_type grpc_channel_num_external_connectivity_watchers_import;
142
+ #define grpc_channel_num_external_connectivity_watchers grpc_channel_num_external_connectivity_watchers_import
143
+ typedef void(*grpc_channel_watch_connectivity_state_type)(grpc_channel* channel, grpc_connectivity_state last_observed_state, gpr_timespec deadline, grpc_completion_queue* cq, void* tag);
144
+ extern grpc_channel_watch_connectivity_state_type grpc_channel_watch_connectivity_state_import;
145
+ #define grpc_channel_watch_connectivity_state grpc_channel_watch_connectivity_state_import
146
+ typedef int(*grpc_channel_support_connectivity_watcher_type)(grpc_channel* channel);
147
+ extern grpc_channel_support_connectivity_watcher_type grpc_channel_support_connectivity_watcher_import;
148
+ #define grpc_channel_support_connectivity_watcher grpc_channel_support_connectivity_watcher_import
149
+ typedef grpc_call*(*grpc_channel_create_call_type)(grpc_channel* channel, grpc_call* parent_call, uint32_t propagation_mask, grpc_completion_queue* completion_queue, grpc_slice method, const grpc_slice* host, gpr_timespec deadline, void* reserved);
150
+ extern grpc_channel_create_call_type grpc_channel_create_call_import;
151
+ #define grpc_channel_create_call grpc_channel_create_call_import
152
+ typedef void*(*grpc_channel_register_call_type)(grpc_channel* channel, const char* method, const char* host, void* reserved);
153
+ extern grpc_channel_register_call_type grpc_channel_register_call_import;
154
+ #define grpc_channel_register_call grpc_channel_register_call_import
155
+ typedef grpc_call*(*grpc_channel_create_registered_call_type)(grpc_channel* channel, grpc_call* parent_call, uint32_t propagation_mask, grpc_completion_queue* completion_queue, void* registered_call_handle, gpr_timespec deadline, void* reserved);
156
+ extern grpc_channel_create_registered_call_type grpc_channel_create_registered_call_import;
157
+ #define grpc_channel_create_registered_call grpc_channel_create_registered_call_import
158
+ typedef void*(*grpc_call_arena_alloc_type)(grpc_call* call, size_t size);
159
+ extern grpc_call_arena_alloc_type grpc_call_arena_alloc_import;
160
+ #define grpc_call_arena_alloc grpc_call_arena_alloc_import
161
+ typedef grpc_call_error(*grpc_call_start_batch_type)(grpc_call* call, const grpc_op* ops, size_t nops, void* tag, void* reserved);
162
+ extern grpc_call_start_batch_type grpc_call_start_batch_import;
163
+ #define grpc_call_start_batch grpc_call_start_batch_import
164
+ typedef char*(*grpc_call_get_peer_type)(grpc_call* call);
165
+ extern grpc_call_get_peer_type grpc_call_get_peer_import;
166
+ #define grpc_call_get_peer grpc_call_get_peer_import
167
+ typedef void(*grpc_census_call_set_context_type)(grpc_call* call, struct census_context* context);
168
+ extern grpc_census_call_set_context_type grpc_census_call_set_context_import;
169
+ #define grpc_census_call_set_context grpc_census_call_set_context_import
170
+ typedef struct census_context*(*grpc_census_call_get_context_type)(grpc_call* call);
171
+ extern grpc_census_call_get_context_type grpc_census_call_get_context_import;
172
+ #define grpc_census_call_get_context grpc_census_call_get_context_import
173
+ typedef char*(*grpc_channel_get_target_type)(grpc_channel* channel);
174
+ extern grpc_channel_get_target_type grpc_channel_get_target_import;
175
+ #define grpc_channel_get_target grpc_channel_get_target_import
176
+ typedef void(*grpc_channel_get_info_type)(grpc_channel* channel, const grpc_channel_info* channel_info);
177
+ extern grpc_channel_get_info_type grpc_channel_get_info_import;
178
+ #define grpc_channel_get_info grpc_channel_get_info_import
179
+ typedef void(*grpc_channel_reset_connect_backoff_type)(grpc_channel* channel);
180
+ extern grpc_channel_reset_connect_backoff_type grpc_channel_reset_connect_backoff_import;
181
+ #define grpc_channel_reset_connect_backoff grpc_channel_reset_connect_backoff_import
182
+ typedef void(*grpc_channel_credentials_release_type)(grpc_channel_credentials* creds);
183
+ extern grpc_channel_credentials_release_type grpc_channel_credentials_release_import;
184
+ #define grpc_channel_credentials_release grpc_channel_credentials_release_import
185
+ typedef void(*grpc_server_credentials_release_type)(grpc_server_credentials* creds);
186
+ extern grpc_server_credentials_release_type grpc_server_credentials_release_import;
187
+ #define grpc_server_credentials_release grpc_server_credentials_release_import
188
+ typedef grpc_channel*(*grpc_channel_create_type)(const char* target, grpc_channel_credentials* creds, const grpc_channel_args* args);
189
+ extern grpc_channel_create_type grpc_channel_create_import;
190
+ #define grpc_channel_create grpc_channel_create_import
191
+ typedef grpc_channel*(*grpc_lame_client_channel_create_type)(const char* target, grpc_status_code error_code, const char* error_message);
192
+ extern grpc_lame_client_channel_create_type grpc_lame_client_channel_create_import;
193
+ #define grpc_lame_client_channel_create grpc_lame_client_channel_create_import
194
+ typedef void(*grpc_channel_destroy_type)(grpc_channel* channel);
195
+ extern grpc_channel_destroy_type grpc_channel_destroy_import;
196
+ #define grpc_channel_destroy grpc_channel_destroy_import
197
+ typedef grpc_call_error(*grpc_call_cancel_type)(grpc_call* call, void* reserved);
198
+ extern grpc_call_cancel_type grpc_call_cancel_import;
199
+ #define grpc_call_cancel grpc_call_cancel_import
200
+ typedef grpc_call_error(*grpc_call_cancel_with_status_type)(grpc_call* call, grpc_status_code status, const char* description, void* reserved);
201
+ extern grpc_call_cancel_with_status_type grpc_call_cancel_with_status_import;
202
+ #define grpc_call_cancel_with_status grpc_call_cancel_with_status_import
203
+ typedef int(*grpc_call_failed_before_recv_message_type)(const grpc_call* c);
204
+ extern grpc_call_failed_before_recv_message_type grpc_call_failed_before_recv_message_import;
205
+ #define grpc_call_failed_before_recv_message grpc_call_failed_before_recv_message_import
206
+ typedef void(*grpc_call_ref_type)(grpc_call* call);
207
+ extern grpc_call_ref_type grpc_call_ref_import;
208
+ #define grpc_call_ref grpc_call_ref_import
209
+ typedef void(*grpc_call_unref_type)(grpc_call* call);
210
+ extern grpc_call_unref_type grpc_call_unref_import;
211
+ #define grpc_call_unref grpc_call_unref_import
212
+ typedef grpc_call_error(*grpc_server_request_call_type)(grpc_server* server, grpc_call** call, grpc_call_details* details, grpc_metadata_array* request_metadata, grpc_completion_queue* cq_bound_to_call, grpc_completion_queue* cq_for_notification, void* tag_new);
213
+ extern grpc_server_request_call_type grpc_server_request_call_import;
214
+ #define grpc_server_request_call grpc_server_request_call_import
215
+ typedef void*(*grpc_server_register_method_type)(grpc_server* server, const char* method, const char* host, grpc_server_register_method_payload_handling payload_handling, uint32_t flags);
216
+ extern grpc_server_register_method_type grpc_server_register_method_import;
217
+ #define grpc_server_register_method grpc_server_register_method_import
218
+ typedef grpc_call_error(*grpc_server_request_registered_call_type)(grpc_server* server, void* registered_method, grpc_call** call, gpr_timespec* deadline, grpc_metadata_array* request_metadata, grpc_byte_buffer** optional_payload, grpc_completion_queue* cq_bound_to_call, grpc_completion_queue* cq_for_notification, void* tag_new);
219
+ extern grpc_server_request_registered_call_type grpc_server_request_registered_call_import;
220
+ #define grpc_server_request_registered_call grpc_server_request_registered_call_import
221
+ typedef grpc_server*(*grpc_server_create_type)(const grpc_channel_args* args, void* reserved);
222
+ extern grpc_server_create_type grpc_server_create_import;
223
+ #define grpc_server_create grpc_server_create_import
224
+ typedef void(*grpc_server_register_completion_queue_type)(grpc_server* server, grpc_completion_queue* cq, void* reserved);
225
+ extern grpc_server_register_completion_queue_type grpc_server_register_completion_queue_import;
226
+ #define grpc_server_register_completion_queue grpc_server_register_completion_queue_import
227
+ typedef grpc_server_config_fetcher*(*grpc_server_config_fetcher_xds_create_type)(grpc_server_xds_status_notifier notifier, const grpc_channel_args* args);
228
+ extern grpc_server_config_fetcher_xds_create_type grpc_server_config_fetcher_xds_create_import;
229
+ #define grpc_server_config_fetcher_xds_create grpc_server_config_fetcher_xds_create_import
230
+ typedef void(*grpc_server_config_fetcher_destroy_type)(grpc_server_config_fetcher* config_fetcher);
231
+ extern grpc_server_config_fetcher_destroy_type grpc_server_config_fetcher_destroy_import;
232
+ #define grpc_server_config_fetcher_destroy grpc_server_config_fetcher_destroy_import
233
+ typedef void(*grpc_server_set_config_fetcher_type)(grpc_server* server, grpc_server_config_fetcher* config_fetcher);
234
+ extern grpc_server_set_config_fetcher_type grpc_server_set_config_fetcher_import;
235
+ #define grpc_server_set_config_fetcher grpc_server_set_config_fetcher_import
236
+ typedef int(*grpc_server_add_http2_port_type)(grpc_server* server, const char* addr, grpc_server_credentials* creds);
237
+ extern grpc_server_add_http2_port_type grpc_server_add_http2_port_import;
238
+ #define grpc_server_add_http2_port grpc_server_add_http2_port_import
239
+ typedef void(*grpc_server_start_type)(grpc_server* server);
240
+ extern grpc_server_start_type grpc_server_start_import;
241
+ #define grpc_server_start grpc_server_start_import
242
+ typedef void(*grpc_server_shutdown_and_notify_type)(grpc_server* server, grpc_completion_queue* cq, void* tag);
243
+ extern grpc_server_shutdown_and_notify_type grpc_server_shutdown_and_notify_import;
244
+ #define grpc_server_shutdown_and_notify grpc_server_shutdown_and_notify_import
245
+ typedef void(*grpc_server_cancel_all_calls_type)(grpc_server* server);
246
+ extern grpc_server_cancel_all_calls_type grpc_server_cancel_all_calls_import;
247
+ #define grpc_server_cancel_all_calls grpc_server_cancel_all_calls_import
248
+ typedef void(*grpc_server_destroy_type)(grpc_server* server);
249
+ extern grpc_server_destroy_type grpc_server_destroy_import;
250
+ #define grpc_server_destroy grpc_server_destroy_import
251
+ typedef int(*grpc_tracer_set_enabled_type)(const char* name, int enabled);
252
+ extern grpc_tracer_set_enabled_type grpc_tracer_set_enabled_import;
253
+ #define grpc_tracer_set_enabled grpc_tracer_set_enabled_import
254
+ typedef int(*grpc_header_key_is_legal_type)(grpc_slice slice);
255
+ extern grpc_header_key_is_legal_type grpc_header_key_is_legal_import;
256
+ #define grpc_header_key_is_legal grpc_header_key_is_legal_import
257
+ typedef int(*grpc_header_nonbin_value_is_legal_type)(grpc_slice slice);
258
+ extern grpc_header_nonbin_value_is_legal_type grpc_header_nonbin_value_is_legal_import;
259
+ #define grpc_header_nonbin_value_is_legal grpc_header_nonbin_value_is_legal_import
260
+ typedef int(*grpc_is_binary_header_type)(grpc_slice slice);
261
+ extern grpc_is_binary_header_type grpc_is_binary_header_import;
262
+ #define grpc_is_binary_header grpc_is_binary_header_import
263
+ typedef const char*(*grpc_call_error_to_string_type)(grpc_call_error error);
264
+ extern grpc_call_error_to_string_type grpc_call_error_to_string_import;
265
+ #define grpc_call_error_to_string grpc_call_error_to_string_import
266
+ typedef grpc_resource_quota*(*grpc_resource_quota_create_type)(const char* trace_name);
267
+ extern grpc_resource_quota_create_type grpc_resource_quota_create_import;
268
+ #define grpc_resource_quota_create grpc_resource_quota_create_import
269
+ typedef void(*grpc_resource_quota_ref_type)(grpc_resource_quota* resource_quota);
270
+ extern grpc_resource_quota_ref_type grpc_resource_quota_ref_import;
271
+ #define grpc_resource_quota_ref grpc_resource_quota_ref_import
272
+ typedef void(*grpc_resource_quota_unref_type)(grpc_resource_quota* resource_quota);
273
+ extern grpc_resource_quota_unref_type grpc_resource_quota_unref_import;
274
+ #define grpc_resource_quota_unref grpc_resource_quota_unref_import
275
+ typedef void(*grpc_resource_quota_resize_type)(grpc_resource_quota* resource_quota, size_t new_size);
276
+ extern grpc_resource_quota_resize_type grpc_resource_quota_resize_import;
277
+ #define grpc_resource_quota_resize grpc_resource_quota_resize_import
278
+ typedef void(*grpc_resource_quota_set_max_threads_type)(grpc_resource_quota* resource_quota, int new_max_threads);
279
+ extern grpc_resource_quota_set_max_threads_type grpc_resource_quota_set_max_threads_import;
280
+ #define grpc_resource_quota_set_max_threads grpc_resource_quota_set_max_threads_import
281
+ typedef grpc_slice(*grpc_dump_xds_configs_type)(void);
282
+ extern grpc_dump_xds_configs_type grpc_dump_xds_configs_import;
283
+ #define grpc_dump_xds_configs grpc_dump_xds_configs_import
284
+ typedef const grpc_arg_pointer_vtable*(*grpc_resource_quota_arg_vtable_type)(void);
285
+ extern grpc_resource_quota_arg_vtable_type grpc_resource_quota_arg_vtable_import;
286
+ #define grpc_resource_quota_arg_vtable grpc_resource_quota_arg_vtable_import
287
+ typedef char*(*grpc_channelz_get_top_channels_type)(intptr_t start_channel_id);
288
+ extern grpc_channelz_get_top_channels_type grpc_channelz_get_top_channels_import;
289
+ #define grpc_channelz_get_top_channels grpc_channelz_get_top_channels_import
290
+ typedef char*(*grpc_channelz_get_servers_type)(intptr_t start_server_id);
291
+ extern grpc_channelz_get_servers_type grpc_channelz_get_servers_import;
292
+ #define grpc_channelz_get_servers grpc_channelz_get_servers_import
293
+ typedef char*(*grpc_channelz_get_server_type)(intptr_t server_id);
294
+ extern grpc_channelz_get_server_type grpc_channelz_get_server_import;
295
+ #define grpc_channelz_get_server grpc_channelz_get_server_import
296
+ typedef char*(*grpc_channelz_get_server_sockets_type)(intptr_t server_id, intptr_t start_socket_id, intptr_t max_results);
297
+ extern grpc_channelz_get_server_sockets_type grpc_channelz_get_server_sockets_import;
298
+ #define grpc_channelz_get_server_sockets grpc_channelz_get_server_sockets_import
299
+ typedef char*(*grpc_channelz_get_channel_type)(intptr_t channel_id);
300
+ extern grpc_channelz_get_channel_type grpc_channelz_get_channel_import;
301
+ #define grpc_channelz_get_channel grpc_channelz_get_channel_import
302
+ typedef char*(*grpc_channelz_get_subchannel_type)(intptr_t subchannel_id);
303
+ extern grpc_channelz_get_subchannel_type grpc_channelz_get_subchannel_import;
304
+ #define grpc_channelz_get_subchannel grpc_channelz_get_subchannel_import
305
+ typedef char*(*grpc_channelz_get_socket_type)(intptr_t socket_id);
306
+ extern grpc_channelz_get_socket_type grpc_channelz_get_socket_import;
307
+ #define grpc_channelz_get_socket grpc_channelz_get_socket_import
308
+ typedef const grpc_arg_pointer_vtable*(*grpc_authorization_policy_provider_arg_vtable_type)(void);
309
+ extern grpc_authorization_policy_provider_arg_vtable_type grpc_authorization_policy_provider_arg_vtable_import;
310
+ #define grpc_authorization_policy_provider_arg_vtable grpc_authorization_policy_provider_arg_vtable_import
311
+ typedef grpc_channel*(*grpc_channel_create_from_fd_type)(const char* target, int fd, grpc_channel_credentials* creds, const grpc_channel_args* args);
312
+ extern grpc_channel_create_from_fd_type grpc_channel_create_from_fd_import;
313
+ #define grpc_channel_create_from_fd grpc_channel_create_from_fd_import
314
+ typedef void(*grpc_server_add_channel_from_fd_type)(grpc_server* server, int fd, grpc_server_credentials* creds);
315
+ extern grpc_server_add_channel_from_fd_type grpc_server_add_channel_from_fd_import;
316
+ #define grpc_server_add_channel_from_fd grpc_server_add_channel_from_fd_import
317
+ typedef const grpc_auth_property*(*grpc_auth_property_iterator_next_type)(grpc_auth_property_iterator* it);
318
+ extern grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import;
319
+ #define grpc_auth_property_iterator_next grpc_auth_property_iterator_next_import
320
+ typedef grpc_auth_property_iterator(*grpc_auth_context_property_iterator_type)(const grpc_auth_context* ctx);
321
+ extern grpc_auth_context_property_iterator_type grpc_auth_context_property_iterator_import;
322
+ #define grpc_auth_context_property_iterator grpc_auth_context_property_iterator_import
323
+ typedef grpc_auth_property_iterator(*grpc_auth_context_peer_identity_type)(const grpc_auth_context* ctx);
324
+ extern grpc_auth_context_peer_identity_type grpc_auth_context_peer_identity_import;
325
+ #define grpc_auth_context_peer_identity grpc_auth_context_peer_identity_import
326
+ typedef grpc_auth_property_iterator(*grpc_auth_context_find_properties_by_name_type)(const grpc_auth_context* ctx, const char* name);
327
+ extern grpc_auth_context_find_properties_by_name_type grpc_auth_context_find_properties_by_name_import;
328
+ #define grpc_auth_context_find_properties_by_name grpc_auth_context_find_properties_by_name_import
329
+ typedef const char*(*grpc_auth_context_peer_identity_property_name_type)(const grpc_auth_context* ctx);
330
+ extern grpc_auth_context_peer_identity_property_name_type grpc_auth_context_peer_identity_property_name_import;
331
+ #define grpc_auth_context_peer_identity_property_name grpc_auth_context_peer_identity_property_name_import
332
+ typedef int(*grpc_auth_context_peer_is_authenticated_type)(const grpc_auth_context* ctx);
333
+ extern grpc_auth_context_peer_is_authenticated_type grpc_auth_context_peer_is_authenticated_import;
334
+ #define grpc_auth_context_peer_is_authenticated grpc_auth_context_peer_is_authenticated_import
335
+ typedef grpc_auth_context*(*grpc_call_auth_context_type)(grpc_call* call);
336
+ extern grpc_call_auth_context_type grpc_call_auth_context_import;
337
+ #define grpc_call_auth_context grpc_call_auth_context_import
338
+ typedef void(*grpc_auth_context_release_type)(grpc_auth_context* context);
339
+ extern grpc_auth_context_release_type grpc_auth_context_release_import;
340
+ #define grpc_auth_context_release grpc_auth_context_release_import
341
+ typedef void(*grpc_auth_context_add_property_type)(grpc_auth_context* ctx, const char* name, const char* value, size_t value_length);
342
+ extern grpc_auth_context_add_property_type grpc_auth_context_add_property_import;
343
+ #define grpc_auth_context_add_property grpc_auth_context_add_property_import
344
+ typedef void(*grpc_auth_context_add_cstring_property_type)(grpc_auth_context* ctx, const char* name, const char* value);
345
+ extern grpc_auth_context_add_cstring_property_type grpc_auth_context_add_cstring_property_import;
346
+ #define grpc_auth_context_add_cstring_property grpc_auth_context_add_cstring_property_import
347
+ typedef int(*grpc_auth_context_set_peer_identity_property_name_type)(grpc_auth_context* ctx, const char* name);
348
+ extern grpc_auth_context_set_peer_identity_property_name_type grpc_auth_context_set_peer_identity_property_name_import;
349
+ #define grpc_auth_context_set_peer_identity_property_name grpc_auth_context_set_peer_identity_property_name_import
350
+ typedef grpc_ssl_session_cache*(*grpc_ssl_session_cache_create_lru_type)(size_t capacity);
351
+ extern grpc_ssl_session_cache_create_lru_type grpc_ssl_session_cache_create_lru_import;
352
+ #define grpc_ssl_session_cache_create_lru grpc_ssl_session_cache_create_lru_import
353
+ typedef void(*grpc_ssl_session_cache_destroy_type)(grpc_ssl_session_cache* cache);
354
+ extern grpc_ssl_session_cache_destroy_type grpc_ssl_session_cache_destroy_import;
355
+ #define grpc_ssl_session_cache_destroy grpc_ssl_session_cache_destroy_import
356
+ typedef grpc_arg(*grpc_ssl_session_cache_create_channel_arg_type)(grpc_ssl_session_cache* cache);
357
+ extern grpc_ssl_session_cache_create_channel_arg_type grpc_ssl_session_cache_create_channel_arg_import;
358
+ #define grpc_ssl_session_cache_create_channel_arg grpc_ssl_session_cache_create_channel_arg_import
359
+ typedef void(*grpc_call_credentials_release_type)(grpc_call_credentials* creds);
360
+ extern grpc_call_credentials_release_type grpc_call_credentials_release_import;
361
+ #define grpc_call_credentials_release grpc_call_credentials_release_import
362
+ typedef grpc_channel_credentials*(*grpc_google_default_credentials_create_type)(grpc_call_credentials* call_credentials);
363
+ extern grpc_google_default_credentials_create_type grpc_google_default_credentials_create_import;
364
+ #define grpc_google_default_credentials_create grpc_google_default_credentials_create_import
365
+ typedef void(*grpc_set_ssl_roots_override_callback_type)(grpc_ssl_roots_override_callback cb);
366
+ extern grpc_set_ssl_roots_override_callback_type grpc_set_ssl_roots_override_callback_import;
367
+ #define grpc_set_ssl_roots_override_callback grpc_set_ssl_roots_override_callback_import
368
+ typedef grpc_channel_credentials*(*grpc_ssl_credentials_create_type)(const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, const verify_peer_options* verify_options, void* reserved);
369
+ extern grpc_ssl_credentials_create_type grpc_ssl_credentials_create_import;
370
+ #define grpc_ssl_credentials_create grpc_ssl_credentials_create_import
371
+ typedef grpc_channel_credentials*(*grpc_ssl_credentials_create_ex_type)(const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, const grpc_ssl_verify_peer_options* verify_options, void* reserved);
372
+ extern grpc_ssl_credentials_create_ex_type grpc_ssl_credentials_create_ex_import;
373
+ #define grpc_ssl_credentials_create_ex grpc_ssl_credentials_create_ex_import
374
+ typedef grpc_channel_credentials*(*grpc_composite_channel_credentials_create_type)(grpc_channel_credentials* channel_creds, grpc_call_credentials* call_creds, void* reserved);
375
+ extern grpc_composite_channel_credentials_create_type grpc_composite_channel_credentials_create_import;
376
+ #define grpc_composite_channel_credentials_create grpc_composite_channel_credentials_create_import
377
+ typedef grpc_call_credentials*(*grpc_composite_call_credentials_create_type)(grpc_call_credentials* creds1, grpc_call_credentials* creds2, void* reserved);
378
+ extern grpc_composite_call_credentials_create_type grpc_composite_call_credentials_create_import;
379
+ #define grpc_composite_call_credentials_create grpc_composite_call_credentials_create_import
380
+ typedef grpc_call_credentials*(*grpc_google_compute_engine_credentials_create_type)(void* reserved);
381
+ extern grpc_google_compute_engine_credentials_create_type grpc_google_compute_engine_credentials_create_import;
382
+ #define grpc_google_compute_engine_credentials_create grpc_google_compute_engine_credentials_create_import
383
+ typedef gpr_timespec(*grpc_max_auth_token_lifetime_type)(void);
384
+ extern grpc_max_auth_token_lifetime_type grpc_max_auth_token_lifetime_import;
385
+ #define grpc_max_auth_token_lifetime grpc_max_auth_token_lifetime_import
386
+ typedef grpc_call_credentials*(*grpc_service_account_jwt_access_credentials_create_type)(const char* json_key, gpr_timespec token_lifetime, void* reserved);
387
+ extern grpc_service_account_jwt_access_credentials_create_type grpc_service_account_jwt_access_credentials_create_import;
388
+ #define grpc_service_account_jwt_access_credentials_create grpc_service_account_jwt_access_credentials_create_import
389
+ typedef grpc_call_credentials*(*grpc_external_account_credentials_create_type)(const char* json_string, const char* scopes_string);
390
+ extern grpc_external_account_credentials_create_type grpc_external_account_credentials_create_import;
391
+ #define grpc_external_account_credentials_create grpc_external_account_credentials_create_import
392
+ typedef grpc_call_credentials*(*grpc_google_refresh_token_credentials_create_type)(const char* json_refresh_token, void* reserved);
393
+ extern grpc_google_refresh_token_credentials_create_type grpc_google_refresh_token_credentials_create_import;
394
+ #define grpc_google_refresh_token_credentials_create grpc_google_refresh_token_credentials_create_import
395
+ typedef grpc_call_credentials*(*grpc_access_token_credentials_create_type)(const char* access_token, void* reserved);
396
+ extern grpc_access_token_credentials_create_type grpc_access_token_credentials_create_import;
397
+ #define grpc_access_token_credentials_create grpc_access_token_credentials_create_import
398
+ typedef grpc_call_credentials*(*grpc_google_iam_credentials_create_type)(const char* authorization_token, const char* authority_selector, void* reserved);
399
+ extern grpc_google_iam_credentials_create_type grpc_google_iam_credentials_create_import;
400
+ #define grpc_google_iam_credentials_create grpc_google_iam_credentials_create_import
401
+ typedef grpc_call_credentials*(*grpc_sts_credentials_create_type)(const grpc_sts_credentials_options* options, void* reserved);
402
+ extern grpc_sts_credentials_create_type grpc_sts_credentials_create_import;
403
+ #define grpc_sts_credentials_create grpc_sts_credentials_create_import
404
+ typedef void(*grpc_auth_metadata_context_copy_type)(grpc_auth_metadata_context* from, grpc_auth_metadata_context* to);
405
+ extern grpc_auth_metadata_context_copy_type grpc_auth_metadata_context_copy_import;
406
+ #define grpc_auth_metadata_context_copy grpc_auth_metadata_context_copy_import
407
+ typedef void(*grpc_auth_metadata_context_reset_type)(grpc_auth_metadata_context* context);
408
+ extern grpc_auth_metadata_context_reset_type grpc_auth_metadata_context_reset_import;
409
+ #define grpc_auth_metadata_context_reset grpc_auth_metadata_context_reset_import
410
+ typedef grpc_call_credentials*(*grpc_metadata_credentials_create_from_plugin_type)(grpc_metadata_credentials_plugin plugin, grpc_security_level min_security_level, void* reserved);
411
+ extern grpc_metadata_credentials_create_from_plugin_type grpc_metadata_credentials_create_from_plugin_import;
412
+ #define grpc_metadata_credentials_create_from_plugin grpc_metadata_credentials_create_from_plugin_import
413
+ typedef grpc_ssl_server_certificate_config*(*grpc_ssl_server_certificate_config_create_type)(const char* pem_root_certs, const grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, size_t num_key_cert_pairs);
414
+ extern grpc_ssl_server_certificate_config_create_type grpc_ssl_server_certificate_config_create_import;
415
+ #define grpc_ssl_server_certificate_config_create grpc_ssl_server_certificate_config_create_import
416
+ typedef void(*grpc_ssl_server_certificate_config_destroy_type)(grpc_ssl_server_certificate_config* config);
417
+ extern grpc_ssl_server_certificate_config_destroy_type grpc_ssl_server_certificate_config_destroy_import;
418
+ #define grpc_ssl_server_certificate_config_destroy grpc_ssl_server_certificate_config_destroy_import
419
+ typedef grpc_server_credentials*(*grpc_ssl_server_credentials_create_type)(const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, size_t num_key_cert_pairs, int force_client_auth, void* reserved);
420
+ extern grpc_ssl_server_credentials_create_type grpc_ssl_server_credentials_create_import;
421
+ #define grpc_ssl_server_credentials_create grpc_ssl_server_credentials_create_import
422
+ typedef grpc_server_credentials*(*grpc_ssl_server_credentials_create_ex_type)(const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, size_t num_key_cert_pairs, grpc_ssl_client_certificate_request_type client_certificate_request, void* reserved);
423
+ extern grpc_ssl_server_credentials_create_ex_type grpc_ssl_server_credentials_create_ex_import;
424
+ #define grpc_ssl_server_credentials_create_ex grpc_ssl_server_credentials_create_ex_import
425
+ typedef grpc_ssl_server_credentials_options*(*grpc_ssl_server_credentials_create_options_using_config_type)(grpc_ssl_client_certificate_request_type client_certificate_request, grpc_ssl_server_certificate_config* certificate_config);
426
+ extern grpc_ssl_server_credentials_create_options_using_config_type grpc_ssl_server_credentials_create_options_using_config_import;
427
+ #define grpc_ssl_server_credentials_create_options_using_config grpc_ssl_server_credentials_create_options_using_config_import
428
+ typedef grpc_ssl_server_credentials_options*(*grpc_ssl_server_credentials_create_options_using_config_fetcher_type)(grpc_ssl_client_certificate_request_type client_certificate_request, grpc_ssl_server_certificate_config_callback cb, void* user_data);
429
+ extern grpc_ssl_server_credentials_create_options_using_config_fetcher_type grpc_ssl_server_credentials_create_options_using_config_fetcher_import;
430
+ #define grpc_ssl_server_credentials_create_options_using_config_fetcher grpc_ssl_server_credentials_create_options_using_config_fetcher_import
431
+ typedef void(*grpc_ssl_server_credentials_options_destroy_type)(grpc_ssl_server_credentials_options* options);
432
+ extern grpc_ssl_server_credentials_options_destroy_type grpc_ssl_server_credentials_options_destroy_import;
433
+ #define grpc_ssl_server_credentials_options_destroy grpc_ssl_server_credentials_options_destroy_import
434
+ typedef grpc_server_credentials*(*grpc_ssl_server_credentials_create_with_options_type)(grpc_ssl_server_credentials_options* options);
435
+ extern grpc_ssl_server_credentials_create_with_options_type grpc_ssl_server_credentials_create_with_options_import;
436
+ #define grpc_ssl_server_credentials_create_with_options grpc_ssl_server_credentials_create_with_options_import
437
+ typedef grpc_call_error(*grpc_call_set_credentials_type)(grpc_call* call, grpc_call_credentials* creds);
438
+ extern grpc_call_set_credentials_type grpc_call_set_credentials_import;
439
+ #define grpc_call_set_credentials grpc_call_set_credentials_import
440
+ typedef void(*grpc_server_credentials_set_auth_metadata_processor_type)(grpc_server_credentials* creds, grpc_auth_metadata_processor processor);
441
+ extern grpc_server_credentials_set_auth_metadata_processor_type grpc_server_credentials_set_auth_metadata_processor_import;
442
+ #define grpc_server_credentials_set_auth_metadata_processor grpc_server_credentials_set_auth_metadata_processor_import
443
+ typedef grpc_alts_credentials_options*(*grpc_alts_credentials_client_options_create_type)(void);
444
+ extern grpc_alts_credentials_client_options_create_type grpc_alts_credentials_client_options_create_import;
445
+ #define grpc_alts_credentials_client_options_create grpc_alts_credentials_client_options_create_import
446
+ typedef grpc_alts_credentials_options*(*grpc_alts_credentials_server_options_create_type)(void);
447
+ extern grpc_alts_credentials_server_options_create_type grpc_alts_credentials_server_options_create_import;
448
+ #define grpc_alts_credentials_server_options_create grpc_alts_credentials_server_options_create_import
449
+ typedef void(*grpc_alts_credentials_client_options_add_target_service_account_type)(grpc_alts_credentials_options* options, const char* service_account);
450
+ extern grpc_alts_credentials_client_options_add_target_service_account_type grpc_alts_credentials_client_options_add_target_service_account_import;
451
+ #define grpc_alts_credentials_client_options_add_target_service_account grpc_alts_credentials_client_options_add_target_service_account_import
452
+ typedef void(*grpc_alts_credentials_options_destroy_type)(grpc_alts_credentials_options* options);
453
+ extern grpc_alts_credentials_options_destroy_type grpc_alts_credentials_options_destroy_import;
454
+ #define grpc_alts_credentials_options_destroy grpc_alts_credentials_options_destroy_import
455
+ typedef grpc_channel_credentials*(*grpc_alts_credentials_create_type)(const grpc_alts_credentials_options* options);
456
+ extern grpc_alts_credentials_create_type grpc_alts_credentials_create_import;
457
+ #define grpc_alts_credentials_create grpc_alts_credentials_create_import
458
+ typedef grpc_server_credentials*(*grpc_alts_server_credentials_create_type)(const grpc_alts_credentials_options* options);
459
+ extern grpc_alts_server_credentials_create_type grpc_alts_server_credentials_create_import;
460
+ #define grpc_alts_server_credentials_create grpc_alts_server_credentials_create_import
461
+ typedef grpc_channel_credentials*(*grpc_local_credentials_create_type)(grpc_local_connect_type type);
462
+ extern grpc_local_credentials_create_type grpc_local_credentials_create_import;
463
+ #define grpc_local_credentials_create grpc_local_credentials_create_import
464
+ typedef grpc_server_credentials*(*grpc_local_server_credentials_create_type)(grpc_local_connect_type type);
465
+ extern grpc_local_server_credentials_create_type grpc_local_server_credentials_create_import;
466
+ #define grpc_local_server_credentials_create grpc_local_server_credentials_create_import
467
+ typedef grpc_tls_identity_pairs*(*grpc_tls_identity_pairs_create_type)();
468
+ extern grpc_tls_identity_pairs_create_type grpc_tls_identity_pairs_create_import;
469
+ #define grpc_tls_identity_pairs_create grpc_tls_identity_pairs_create_import
470
+ typedef void(*grpc_tls_identity_pairs_add_pair_type)(grpc_tls_identity_pairs* pairs, const char* private_key, const char* cert_chain);
471
+ extern grpc_tls_identity_pairs_add_pair_type grpc_tls_identity_pairs_add_pair_import;
472
+ #define grpc_tls_identity_pairs_add_pair grpc_tls_identity_pairs_add_pair_import
473
+ typedef void(*grpc_tls_identity_pairs_destroy_type)(grpc_tls_identity_pairs* pairs);
474
+ extern grpc_tls_identity_pairs_destroy_type grpc_tls_identity_pairs_destroy_import;
475
+ #define grpc_tls_identity_pairs_destroy grpc_tls_identity_pairs_destroy_import
476
+ typedef grpc_tls_certificate_provider*(*grpc_tls_certificate_provider_static_data_create_type)(const char* root_certificate, grpc_tls_identity_pairs* pem_key_cert_pairs);
477
+ extern grpc_tls_certificate_provider_static_data_create_type grpc_tls_certificate_provider_static_data_create_import;
478
+ #define grpc_tls_certificate_provider_static_data_create grpc_tls_certificate_provider_static_data_create_import
479
+ typedef grpc_tls_certificate_provider*(*grpc_tls_certificate_provider_file_watcher_create_type)(const char* private_key_path, const char* identity_certificate_path, const char* root_cert_path, unsigned int refresh_interval_sec);
480
+ extern grpc_tls_certificate_provider_file_watcher_create_type grpc_tls_certificate_provider_file_watcher_create_import;
481
+ #define grpc_tls_certificate_provider_file_watcher_create grpc_tls_certificate_provider_file_watcher_create_import
482
+ typedef void(*grpc_tls_certificate_provider_release_type)(grpc_tls_certificate_provider* provider);
483
+ extern grpc_tls_certificate_provider_release_type grpc_tls_certificate_provider_release_import;
484
+ #define grpc_tls_certificate_provider_release grpc_tls_certificate_provider_release_import
485
+ typedef grpc_tls_credentials_options*(*grpc_tls_credentials_options_create_type)(void);
486
+ extern grpc_tls_credentials_options_create_type grpc_tls_credentials_options_create_import;
487
+ #define grpc_tls_credentials_options_create grpc_tls_credentials_options_create_import
488
+ typedef void(*grpc_tls_credentials_options_set_certificate_provider_type)(grpc_tls_credentials_options* options, grpc_tls_certificate_provider* provider);
489
+ extern grpc_tls_credentials_options_set_certificate_provider_type grpc_tls_credentials_options_set_certificate_provider_import;
490
+ #define grpc_tls_credentials_options_set_certificate_provider grpc_tls_credentials_options_set_certificate_provider_import
491
+ typedef void(*grpc_tls_credentials_options_watch_root_certs_type)(grpc_tls_credentials_options* options);
492
+ extern grpc_tls_credentials_options_watch_root_certs_type grpc_tls_credentials_options_watch_root_certs_import;
493
+ #define grpc_tls_credentials_options_watch_root_certs grpc_tls_credentials_options_watch_root_certs_import
494
+ typedef void(*grpc_tls_credentials_options_set_root_cert_name_type)(grpc_tls_credentials_options* options, const char* root_cert_name);
495
+ extern grpc_tls_credentials_options_set_root_cert_name_type grpc_tls_credentials_options_set_root_cert_name_import;
496
+ #define grpc_tls_credentials_options_set_root_cert_name grpc_tls_credentials_options_set_root_cert_name_import
497
+ typedef void(*grpc_tls_credentials_options_watch_identity_key_cert_pairs_type)(grpc_tls_credentials_options* options);
498
+ extern grpc_tls_credentials_options_watch_identity_key_cert_pairs_type grpc_tls_credentials_options_watch_identity_key_cert_pairs_import;
499
+ #define grpc_tls_credentials_options_watch_identity_key_cert_pairs grpc_tls_credentials_options_watch_identity_key_cert_pairs_import
500
+ typedef void(*grpc_tls_credentials_options_set_identity_cert_name_type)(grpc_tls_credentials_options* options, const char* identity_cert_name);
501
+ extern grpc_tls_credentials_options_set_identity_cert_name_type grpc_tls_credentials_options_set_identity_cert_name_import;
502
+ #define grpc_tls_credentials_options_set_identity_cert_name grpc_tls_credentials_options_set_identity_cert_name_import
503
+ typedef void(*grpc_tls_credentials_options_set_cert_request_type_type)(grpc_tls_credentials_options* options, grpc_ssl_client_certificate_request_type type);
504
+ extern grpc_tls_credentials_options_set_cert_request_type_type grpc_tls_credentials_options_set_cert_request_type_import;
505
+ #define grpc_tls_credentials_options_set_cert_request_type grpc_tls_credentials_options_set_cert_request_type_import
506
+ typedef void(*grpc_tls_credentials_options_set_crl_directory_type)(grpc_tls_credentials_options* options, const char* crl_directory);
507
+ extern grpc_tls_credentials_options_set_crl_directory_type grpc_tls_credentials_options_set_crl_directory_import;
508
+ #define grpc_tls_credentials_options_set_crl_directory grpc_tls_credentials_options_set_crl_directory_import
509
+ typedef void(*grpc_tls_credentials_options_set_verify_server_cert_type)(grpc_tls_credentials_options* options, int verify_server_cert);
510
+ extern grpc_tls_credentials_options_set_verify_server_cert_type grpc_tls_credentials_options_set_verify_server_cert_import;
511
+ #define grpc_tls_credentials_options_set_verify_server_cert grpc_tls_credentials_options_set_verify_server_cert_import
512
+ typedef void(*grpc_tls_credentials_options_set_check_call_host_type)(grpc_tls_credentials_options* options, int check_call_host);
513
+ extern grpc_tls_credentials_options_set_check_call_host_type grpc_tls_credentials_options_set_check_call_host_import;
514
+ #define grpc_tls_credentials_options_set_check_call_host grpc_tls_credentials_options_set_check_call_host_import
515
+ typedef grpc_channel_credentials*(*grpc_insecure_credentials_create_type)();
516
+ extern grpc_insecure_credentials_create_type grpc_insecure_credentials_create_import;
517
+ #define grpc_insecure_credentials_create grpc_insecure_credentials_create_import
518
+ typedef grpc_server_credentials*(*grpc_insecure_server_credentials_create_type)();
519
+ extern grpc_insecure_server_credentials_create_type grpc_insecure_server_credentials_create_import;
520
+ #define grpc_insecure_server_credentials_create grpc_insecure_server_credentials_create_import
521
+ typedef grpc_channel_credentials*(*grpc_xds_credentials_create_type)(grpc_channel_credentials* fallback_credentials);
522
+ extern grpc_xds_credentials_create_type grpc_xds_credentials_create_import;
523
+ #define grpc_xds_credentials_create grpc_xds_credentials_create_import
524
+ typedef grpc_server_credentials*(*grpc_xds_server_credentials_create_type)(grpc_server_credentials* fallback_credentials);
525
+ extern grpc_xds_server_credentials_create_type grpc_xds_server_credentials_create_import;
526
+ #define grpc_xds_server_credentials_create grpc_xds_server_credentials_create_import
527
+ typedef grpc_authorization_policy_provider*(*grpc_authorization_policy_provider_static_data_create_type)(const char* authz_policy, grpc_status_code* code, const char** error_details);
528
+ extern grpc_authorization_policy_provider_static_data_create_type grpc_authorization_policy_provider_static_data_create_import;
529
+ #define grpc_authorization_policy_provider_static_data_create grpc_authorization_policy_provider_static_data_create_import
530
+ typedef grpc_authorization_policy_provider*(*grpc_authorization_policy_provider_file_watcher_create_type)(const char* authz_policy_path, unsigned int refresh_interval_sec, grpc_status_code* code, const char** error_details);
531
+ extern grpc_authorization_policy_provider_file_watcher_create_type grpc_authorization_policy_provider_file_watcher_create_import;
532
+ #define grpc_authorization_policy_provider_file_watcher_create grpc_authorization_policy_provider_file_watcher_create_import
533
+ typedef void(*grpc_authorization_policy_provider_release_type)(grpc_authorization_policy_provider* provider);
534
+ extern grpc_authorization_policy_provider_release_type grpc_authorization_policy_provider_release_import;
535
+ #define grpc_authorization_policy_provider_release grpc_authorization_policy_provider_release_import
536
+ typedef void(*grpc_tls_credentials_options_set_tls_session_key_log_file_path_type)(grpc_tls_credentials_options* options, const char* path);
537
+ extern grpc_tls_credentials_options_set_tls_session_key_log_file_path_type grpc_tls_credentials_options_set_tls_session_key_log_file_path_import;
538
+ #define grpc_tls_credentials_options_set_tls_session_key_log_file_path grpc_tls_credentials_options_set_tls_session_key_log_file_path_import
539
+ typedef grpc_byte_buffer*(*grpc_raw_byte_buffer_create_type)(grpc_slice* slices, size_t nslices);
540
+ extern grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
541
+ #define grpc_raw_byte_buffer_create grpc_raw_byte_buffer_create_import
542
+ typedef grpc_byte_buffer*(*grpc_raw_compressed_byte_buffer_create_type)(grpc_slice* slices, size_t nslices, grpc_compression_algorithm compression);
543
+ extern grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import;
544
+ #define grpc_raw_compressed_byte_buffer_create grpc_raw_compressed_byte_buffer_create_import
545
+ typedef grpc_byte_buffer*(*grpc_byte_buffer_copy_type)(grpc_byte_buffer* bb);
546
+ extern grpc_byte_buffer_copy_type grpc_byte_buffer_copy_import;
547
+ #define grpc_byte_buffer_copy grpc_byte_buffer_copy_import
548
+ typedef size_t(*grpc_byte_buffer_length_type)(grpc_byte_buffer* bb);
549
+ extern grpc_byte_buffer_length_type grpc_byte_buffer_length_import;
550
+ #define grpc_byte_buffer_length grpc_byte_buffer_length_import
551
+ typedef void(*grpc_byte_buffer_destroy_type)(grpc_byte_buffer* bb);
552
+ extern grpc_byte_buffer_destroy_type grpc_byte_buffer_destroy_import;
553
+ #define grpc_byte_buffer_destroy grpc_byte_buffer_destroy_import
554
+ typedef int(*grpc_byte_buffer_reader_init_type)(grpc_byte_buffer_reader* reader, grpc_byte_buffer* buffer);
555
+ extern grpc_byte_buffer_reader_init_type grpc_byte_buffer_reader_init_import;
556
+ #define grpc_byte_buffer_reader_init grpc_byte_buffer_reader_init_import
557
+ typedef void(*grpc_byte_buffer_reader_destroy_type)(grpc_byte_buffer_reader* reader);
558
+ extern grpc_byte_buffer_reader_destroy_type grpc_byte_buffer_reader_destroy_import;
559
+ #define grpc_byte_buffer_reader_destroy grpc_byte_buffer_reader_destroy_import
560
+ typedef int(*grpc_byte_buffer_reader_next_type)(grpc_byte_buffer_reader* reader, grpc_slice* slice);
561
+ extern grpc_byte_buffer_reader_next_type grpc_byte_buffer_reader_next_import;
562
+ #define grpc_byte_buffer_reader_next grpc_byte_buffer_reader_next_import
563
+ typedef int(*grpc_byte_buffer_reader_peek_type)(grpc_byte_buffer_reader* reader, grpc_slice** slice);
564
+ extern grpc_byte_buffer_reader_peek_type grpc_byte_buffer_reader_peek_import;
565
+ #define grpc_byte_buffer_reader_peek grpc_byte_buffer_reader_peek_import
566
+ typedef grpc_slice(*grpc_byte_buffer_reader_readall_type)(grpc_byte_buffer_reader* reader);
567
+ extern grpc_byte_buffer_reader_readall_type grpc_byte_buffer_reader_readall_import;
568
+ #define grpc_byte_buffer_reader_readall grpc_byte_buffer_reader_readall_import
569
+ typedef grpc_byte_buffer*(*grpc_raw_byte_buffer_from_reader_type)(grpc_byte_buffer_reader* reader);
570
+ extern grpc_raw_byte_buffer_from_reader_type grpc_raw_byte_buffer_from_reader_import;
571
+ #define grpc_raw_byte_buffer_from_reader grpc_raw_byte_buffer_from_reader_import
572
+ typedef const char*(*gpr_log_severity_string_type)(gpr_log_severity severity);
573
+ extern gpr_log_severity_string_type gpr_log_severity_string_import;
574
+ #define gpr_log_severity_string gpr_log_severity_string_import
575
+ typedef void(*gpr_log_type)(const char* file, int line, gpr_log_severity severity, const char* format, ...) GPR_PRINT_FORMAT_CHECK(4, 5);
576
+ extern gpr_log_type gpr_log_import;
577
+ #define gpr_log gpr_log_import
578
+ typedef int(*gpr_should_log_type)(gpr_log_severity severity);
579
+ extern gpr_should_log_type gpr_should_log_import;
580
+ #define gpr_should_log gpr_should_log_import
581
+ typedef void(*gpr_log_message_type)(const char* file, int line, gpr_log_severity severity, const char* message);
582
+ extern gpr_log_message_type gpr_log_message_import;
583
+ #define gpr_log_message gpr_log_message_import
584
+ typedef void(*gpr_set_log_verbosity_type)(gpr_log_severity min_severity_to_print);
585
+ extern gpr_set_log_verbosity_type gpr_set_log_verbosity_import;
586
+ #define gpr_set_log_verbosity gpr_set_log_verbosity_import
587
+ typedef void(*gpr_log_verbosity_init_type)(void);
588
+ extern gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
589
+ #define gpr_log_verbosity_init gpr_log_verbosity_init_import
590
+ typedef void(*gpr_set_log_function_type)(gpr_log_func func);
591
+ extern gpr_set_log_function_type gpr_set_log_function_import;
592
+ #define gpr_set_log_function gpr_set_log_function_import
593
+ typedef grpc_slice(*grpc_slice_ref_type)(grpc_slice s);
594
+ extern grpc_slice_ref_type grpc_slice_ref_import;
595
+ #define grpc_slice_ref grpc_slice_ref_import
596
+ typedef void(*grpc_slice_unref_type)(grpc_slice s);
597
+ extern grpc_slice_unref_type grpc_slice_unref_import;
598
+ #define grpc_slice_unref grpc_slice_unref_import
599
+ typedef grpc_slice(*grpc_slice_copy_type)(grpc_slice s);
600
+ extern grpc_slice_copy_type grpc_slice_copy_import;
601
+ #define grpc_slice_copy grpc_slice_copy_import
602
+ typedef grpc_slice(*grpc_slice_new_type)(void* p, size_t len, void (*destroy)(void*));
603
+ extern grpc_slice_new_type grpc_slice_new_import;
604
+ #define grpc_slice_new grpc_slice_new_import
605
+ typedef grpc_slice(*grpc_slice_new_with_user_data_type)(void* p, size_t len, void (*destroy)(void*), void* user_data);
606
+ extern grpc_slice_new_with_user_data_type grpc_slice_new_with_user_data_import;
607
+ #define grpc_slice_new_with_user_data grpc_slice_new_with_user_data_import
608
+ typedef grpc_slice(*grpc_slice_new_with_len_type)(void* p, size_t len, void (*destroy)(void*, size_t));
609
+ extern grpc_slice_new_with_len_type grpc_slice_new_with_len_import;
610
+ #define grpc_slice_new_with_len grpc_slice_new_with_len_import
611
+ typedef grpc_slice(*grpc_slice_malloc_type)(size_t length);
612
+ extern grpc_slice_malloc_type grpc_slice_malloc_import;
613
+ #define grpc_slice_malloc grpc_slice_malloc_import
614
+ typedef grpc_slice(*grpc_slice_malloc_large_type)(size_t length);
615
+ extern grpc_slice_malloc_large_type grpc_slice_malloc_large_import;
616
+ #define grpc_slice_malloc_large grpc_slice_malloc_large_import
617
+ typedef grpc_slice(*grpc_slice_from_copied_string_type)(const char* source);
618
+ extern grpc_slice_from_copied_string_type grpc_slice_from_copied_string_import;
619
+ #define grpc_slice_from_copied_string grpc_slice_from_copied_string_import
620
+ typedef grpc_slice(*grpc_slice_from_copied_buffer_type)(const char* source, size_t len);
621
+ extern grpc_slice_from_copied_buffer_type grpc_slice_from_copied_buffer_import;
622
+ #define grpc_slice_from_copied_buffer grpc_slice_from_copied_buffer_import
623
+ typedef grpc_slice(*grpc_slice_from_static_string_type)(const char* source);
624
+ extern grpc_slice_from_static_string_type grpc_slice_from_static_string_import;
625
+ #define grpc_slice_from_static_string grpc_slice_from_static_string_import
626
+ typedef grpc_slice(*grpc_slice_from_static_buffer_type)(const void* source, size_t len);
627
+ extern grpc_slice_from_static_buffer_type grpc_slice_from_static_buffer_import;
628
+ #define grpc_slice_from_static_buffer grpc_slice_from_static_buffer_import
629
+ typedef grpc_slice(*grpc_slice_sub_type)(grpc_slice s, size_t begin, size_t end);
630
+ extern grpc_slice_sub_type grpc_slice_sub_import;
631
+ #define grpc_slice_sub grpc_slice_sub_import
632
+ typedef grpc_slice(*grpc_slice_sub_no_ref_type)(grpc_slice s, size_t begin, size_t end);
633
+ extern grpc_slice_sub_no_ref_type grpc_slice_sub_no_ref_import;
634
+ #define grpc_slice_sub_no_ref grpc_slice_sub_no_ref_import
635
+ typedef grpc_slice(*grpc_slice_split_tail_type)(grpc_slice* s, size_t split);
636
+ extern grpc_slice_split_tail_type grpc_slice_split_tail_import;
637
+ #define grpc_slice_split_tail grpc_slice_split_tail_import
638
+ typedef grpc_slice(*grpc_slice_split_tail_maybe_ref_type)(grpc_slice* s, size_t split, grpc_slice_ref_whom ref_whom);
639
+ extern grpc_slice_split_tail_maybe_ref_type grpc_slice_split_tail_maybe_ref_import;
640
+ #define grpc_slice_split_tail_maybe_ref grpc_slice_split_tail_maybe_ref_import
641
+ typedef grpc_slice(*grpc_slice_split_head_type)(grpc_slice* s, size_t split);
642
+ extern grpc_slice_split_head_type grpc_slice_split_head_import;
643
+ #define grpc_slice_split_head grpc_slice_split_head_import
644
+ typedef grpc_slice(*grpc_empty_slice_type)(void);
645
+ extern grpc_empty_slice_type grpc_empty_slice_import;
646
+ #define grpc_empty_slice grpc_empty_slice_import
647
+ typedef int(*grpc_slice_eq_type)(grpc_slice a, grpc_slice b);
648
+ extern grpc_slice_eq_type grpc_slice_eq_import;
649
+ #define grpc_slice_eq grpc_slice_eq_import
650
+ typedef int(*grpc_slice_cmp_type)(grpc_slice a, grpc_slice b);
651
+ extern grpc_slice_cmp_type grpc_slice_cmp_import;
652
+ #define grpc_slice_cmp grpc_slice_cmp_import
653
+ typedef int(*grpc_slice_str_cmp_type)(grpc_slice a, const char* b);
654
+ extern grpc_slice_str_cmp_type grpc_slice_str_cmp_import;
655
+ #define grpc_slice_str_cmp grpc_slice_str_cmp_import
656
+ typedef int(*grpc_slice_buf_start_eq_type)(grpc_slice a, const void* b, size_t blen);
657
+ extern grpc_slice_buf_start_eq_type grpc_slice_buf_start_eq_import;
658
+ #define grpc_slice_buf_start_eq grpc_slice_buf_start_eq_import
659
+ typedef int(*grpc_slice_rchr_type)(grpc_slice s, char c);
660
+ extern grpc_slice_rchr_type grpc_slice_rchr_import;
661
+ #define grpc_slice_rchr grpc_slice_rchr_import
662
+ typedef int(*grpc_slice_chr_type)(grpc_slice s, char c);
663
+ extern grpc_slice_chr_type grpc_slice_chr_import;
664
+ #define grpc_slice_chr grpc_slice_chr_import
665
+ typedef int(*grpc_slice_slice_type)(grpc_slice haystack, grpc_slice needle);
666
+ extern grpc_slice_slice_type grpc_slice_slice_import;
667
+ #define grpc_slice_slice grpc_slice_slice_import
668
+ typedef int(*grpc_slice_is_equivalent_type)(grpc_slice a, grpc_slice b);
669
+ extern grpc_slice_is_equivalent_type grpc_slice_is_equivalent_import;
670
+ #define grpc_slice_is_equivalent grpc_slice_is_equivalent_import
671
+ typedef grpc_slice(*grpc_slice_dup_type)(grpc_slice a);
672
+ extern grpc_slice_dup_type grpc_slice_dup_import;
673
+ #define grpc_slice_dup grpc_slice_dup_import
674
+ typedef char*(*grpc_slice_to_c_string_type)(grpc_slice s);
675
+ extern grpc_slice_to_c_string_type grpc_slice_to_c_string_import;
676
+ #define grpc_slice_to_c_string grpc_slice_to_c_string_import
677
+ typedef void(*grpc_slice_buffer_init_type)(grpc_slice_buffer* sb);
678
+ extern grpc_slice_buffer_init_type grpc_slice_buffer_init_import;
679
+ #define grpc_slice_buffer_init grpc_slice_buffer_init_import
680
+ typedef void(*grpc_slice_buffer_destroy_type)(grpc_slice_buffer* sb);
681
+ extern grpc_slice_buffer_destroy_type grpc_slice_buffer_destroy_import;
682
+ #define grpc_slice_buffer_destroy grpc_slice_buffer_destroy_import
683
+ typedef void(*grpc_slice_buffer_add_type)(grpc_slice_buffer* sb, grpc_slice slice);
684
+ extern grpc_slice_buffer_add_type grpc_slice_buffer_add_import;
685
+ #define grpc_slice_buffer_add grpc_slice_buffer_add_import
686
+ typedef size_t(*grpc_slice_buffer_add_indexed_type)(grpc_slice_buffer* sb, grpc_slice slice);
687
+ extern grpc_slice_buffer_add_indexed_type grpc_slice_buffer_add_indexed_import;
688
+ #define grpc_slice_buffer_add_indexed grpc_slice_buffer_add_indexed_import
689
+ typedef void(*grpc_slice_buffer_addn_type)(grpc_slice_buffer* sb, grpc_slice* slices, size_t n);
690
+ extern grpc_slice_buffer_addn_type grpc_slice_buffer_addn_import;
691
+ #define grpc_slice_buffer_addn grpc_slice_buffer_addn_import
692
+ typedef uint8_t*(*grpc_slice_buffer_tiny_add_type)(grpc_slice_buffer* sb, size_t len);
693
+ extern grpc_slice_buffer_tiny_add_type grpc_slice_buffer_tiny_add_import;
694
+ #define grpc_slice_buffer_tiny_add grpc_slice_buffer_tiny_add_import
695
+ typedef void(*grpc_slice_buffer_pop_type)(grpc_slice_buffer* sb);
696
+ extern grpc_slice_buffer_pop_type grpc_slice_buffer_pop_import;
697
+ #define grpc_slice_buffer_pop grpc_slice_buffer_pop_import
698
+ typedef void(*grpc_slice_buffer_reset_and_unref_type)(grpc_slice_buffer* sb);
699
+ extern grpc_slice_buffer_reset_and_unref_type grpc_slice_buffer_reset_and_unref_import;
700
+ #define grpc_slice_buffer_reset_and_unref grpc_slice_buffer_reset_and_unref_import
701
+ typedef void(*grpc_slice_buffer_swap_type)(grpc_slice_buffer* a, grpc_slice_buffer* b);
702
+ extern grpc_slice_buffer_swap_type grpc_slice_buffer_swap_import;
703
+ #define grpc_slice_buffer_swap grpc_slice_buffer_swap_import
704
+ typedef void(*grpc_slice_buffer_move_into_type)(grpc_slice_buffer* src, grpc_slice_buffer* dst);
705
+ extern grpc_slice_buffer_move_into_type grpc_slice_buffer_move_into_import;
706
+ #define grpc_slice_buffer_move_into grpc_slice_buffer_move_into_import
707
+ typedef void(*grpc_slice_buffer_trim_end_type)(grpc_slice_buffer* sb, size_t n, grpc_slice_buffer* garbage);
708
+ extern grpc_slice_buffer_trim_end_type grpc_slice_buffer_trim_end_import;
709
+ #define grpc_slice_buffer_trim_end grpc_slice_buffer_trim_end_import
710
+ typedef void(*grpc_slice_buffer_move_first_type)(grpc_slice_buffer* src, size_t n, grpc_slice_buffer* dst);
711
+ extern grpc_slice_buffer_move_first_type grpc_slice_buffer_move_first_import;
712
+ #define grpc_slice_buffer_move_first grpc_slice_buffer_move_first_import
713
+ typedef void(*grpc_slice_buffer_move_first_no_ref_type)(grpc_slice_buffer* src, size_t n, grpc_slice_buffer* dst);
714
+ extern grpc_slice_buffer_move_first_no_ref_type grpc_slice_buffer_move_first_no_ref_import;
715
+ #define grpc_slice_buffer_move_first_no_ref grpc_slice_buffer_move_first_no_ref_import
716
+ typedef void(*grpc_slice_buffer_move_first_into_buffer_type)(grpc_slice_buffer* src, size_t n, void* dst);
717
+ extern grpc_slice_buffer_move_first_into_buffer_type grpc_slice_buffer_move_first_into_buffer_import;
718
+ #define grpc_slice_buffer_move_first_into_buffer grpc_slice_buffer_move_first_into_buffer_import
719
+ typedef grpc_slice(*grpc_slice_buffer_take_first_type)(grpc_slice_buffer* sb);
720
+ extern grpc_slice_buffer_take_first_type grpc_slice_buffer_take_first_import;
721
+ #define grpc_slice_buffer_take_first grpc_slice_buffer_take_first_import
722
+ typedef void(*grpc_slice_buffer_undo_take_first_type)(grpc_slice_buffer* sb, grpc_slice slice);
723
+ extern grpc_slice_buffer_undo_take_first_type grpc_slice_buffer_undo_take_first_import;
724
+ #define grpc_slice_buffer_undo_take_first grpc_slice_buffer_undo_take_first_import
725
+ typedef void*(*gpr_malloc_type)(size_t size);
726
+ extern gpr_malloc_type gpr_malloc_import;
727
+ #define gpr_malloc gpr_malloc_import
728
+ typedef void*(*gpr_zalloc_type)(size_t size);
729
+ extern gpr_zalloc_type gpr_zalloc_import;
730
+ #define gpr_zalloc gpr_zalloc_import
731
+ typedef void(*gpr_free_type)(void* ptr);
732
+ extern gpr_free_type gpr_free_import;
733
+ #define gpr_free gpr_free_import
734
+ typedef void*(*gpr_realloc_type)(void* p, size_t size);
735
+ extern gpr_realloc_type gpr_realloc_import;
736
+ #define gpr_realloc gpr_realloc_import
737
+ typedef void*(*gpr_malloc_aligned_type)(size_t size, size_t alignment);
738
+ extern gpr_malloc_aligned_type gpr_malloc_aligned_import;
739
+ #define gpr_malloc_aligned gpr_malloc_aligned_import
740
+ typedef void(*gpr_free_aligned_type)(void* ptr);
741
+ extern gpr_free_aligned_type gpr_free_aligned_import;
742
+ #define gpr_free_aligned gpr_free_aligned_import
743
+ typedef unsigned(*gpr_cpu_num_cores_type)(void);
744
+ extern gpr_cpu_num_cores_type gpr_cpu_num_cores_import;
745
+ #define gpr_cpu_num_cores gpr_cpu_num_cores_import
746
+ typedef unsigned(*gpr_cpu_current_cpu_type)(void);
747
+ extern gpr_cpu_current_cpu_type gpr_cpu_current_cpu_import;
748
+ #define gpr_cpu_current_cpu gpr_cpu_current_cpu_import
749
+ typedef char*(*gpr_format_message_type)(int messageid);
750
+ extern gpr_format_message_type gpr_format_message_import;
751
+ #define gpr_format_message gpr_format_message_import
752
+ typedef char*(*gpr_strdup_type)(const char* src);
753
+ extern gpr_strdup_type gpr_strdup_import;
754
+ #define gpr_strdup gpr_strdup_import
755
+ typedef int(*gpr_asprintf_type)(char** strp, const char* format, ...) GPR_PRINT_FORMAT_CHECK(2, 3);
756
+ extern gpr_asprintf_type gpr_asprintf_import;
757
+ #define gpr_asprintf gpr_asprintf_import
758
+ typedef void(*gpr_mu_init_type)(gpr_mu* mu);
759
+ extern gpr_mu_init_type gpr_mu_init_import;
760
+ #define gpr_mu_init gpr_mu_init_import
761
+ typedef void(*gpr_mu_destroy_type)(gpr_mu* mu);
762
+ extern gpr_mu_destroy_type gpr_mu_destroy_import;
763
+ #define gpr_mu_destroy gpr_mu_destroy_import
764
+ typedef void(*gpr_mu_lock_type)(gpr_mu* mu);
765
+ extern gpr_mu_lock_type gpr_mu_lock_import;
766
+ #define gpr_mu_lock gpr_mu_lock_import
767
+ typedef void(*gpr_mu_unlock_type)(gpr_mu* mu);
768
+ extern gpr_mu_unlock_type gpr_mu_unlock_import;
769
+ #define gpr_mu_unlock gpr_mu_unlock_import
770
+ typedef int(*gpr_mu_trylock_type)(gpr_mu* mu);
771
+ extern gpr_mu_trylock_type gpr_mu_trylock_import;
772
+ #define gpr_mu_trylock gpr_mu_trylock_import
773
+ typedef void(*gpr_cv_init_type)(gpr_cv* cv);
774
+ extern gpr_cv_init_type gpr_cv_init_import;
775
+ #define gpr_cv_init gpr_cv_init_import
776
+ typedef void(*gpr_cv_destroy_type)(gpr_cv* cv);
777
+ extern gpr_cv_destroy_type gpr_cv_destroy_import;
778
+ #define gpr_cv_destroy gpr_cv_destroy_import
779
+ typedef int(*gpr_cv_wait_type)(gpr_cv* cv, gpr_mu* mu, gpr_timespec abs_deadline);
780
+ extern gpr_cv_wait_type gpr_cv_wait_import;
781
+ #define gpr_cv_wait gpr_cv_wait_import
782
+ typedef void(*gpr_cv_signal_type)(gpr_cv* cv);
783
+ extern gpr_cv_signal_type gpr_cv_signal_import;
784
+ #define gpr_cv_signal gpr_cv_signal_import
785
+ typedef void(*gpr_cv_broadcast_type)(gpr_cv* cv);
786
+ extern gpr_cv_broadcast_type gpr_cv_broadcast_import;
787
+ #define gpr_cv_broadcast gpr_cv_broadcast_import
788
+ typedef void(*gpr_once_init_type)(gpr_once* once, void (*init_function)(void));
789
+ extern gpr_once_init_type gpr_once_init_import;
790
+ #define gpr_once_init gpr_once_init_import
791
+ typedef void(*gpr_event_init_type)(gpr_event* ev);
792
+ extern gpr_event_init_type gpr_event_init_import;
793
+ #define gpr_event_init gpr_event_init_import
794
+ typedef void(*gpr_event_set_type)(gpr_event* ev, void* value);
795
+ extern gpr_event_set_type gpr_event_set_import;
796
+ #define gpr_event_set gpr_event_set_import
797
+ typedef void*(*gpr_event_get_type)(gpr_event* ev);
798
+ extern gpr_event_get_type gpr_event_get_import;
799
+ #define gpr_event_get gpr_event_get_import
800
+ typedef void*(*gpr_event_wait_type)(gpr_event* ev, gpr_timespec abs_deadline);
801
+ extern gpr_event_wait_type gpr_event_wait_import;
802
+ #define gpr_event_wait gpr_event_wait_import
803
+ typedef void(*gpr_ref_init_type)(gpr_refcount* r, int n);
804
+ extern gpr_ref_init_type gpr_ref_init_import;
805
+ #define gpr_ref_init gpr_ref_init_import
806
+ typedef void(*gpr_ref_type)(gpr_refcount* r);
807
+ extern gpr_ref_type gpr_ref_import;
808
+ #define gpr_ref gpr_ref_import
809
+ typedef void(*gpr_ref_non_zero_type)(gpr_refcount* r);
810
+ extern gpr_ref_non_zero_type gpr_ref_non_zero_import;
811
+ #define gpr_ref_non_zero gpr_ref_non_zero_import
812
+ typedef void(*gpr_refn_type)(gpr_refcount* r, int n);
813
+ extern gpr_refn_type gpr_refn_import;
814
+ #define gpr_refn gpr_refn_import
815
+ typedef int(*gpr_unref_type)(gpr_refcount* r);
816
+ extern gpr_unref_type gpr_unref_import;
817
+ #define gpr_unref gpr_unref_import
818
+ typedef int(*gpr_ref_is_unique_type)(gpr_refcount* r);
819
+ extern gpr_ref_is_unique_type gpr_ref_is_unique_import;
820
+ #define gpr_ref_is_unique gpr_ref_is_unique_import
821
+ typedef void(*gpr_stats_init_type)(gpr_stats_counter* c, intptr_t n);
822
+ extern gpr_stats_init_type gpr_stats_init_import;
823
+ #define gpr_stats_init gpr_stats_init_import
824
+ typedef void(*gpr_stats_inc_type)(gpr_stats_counter* c, intptr_t inc);
825
+ extern gpr_stats_inc_type gpr_stats_inc_import;
826
+ #define gpr_stats_inc gpr_stats_inc_import
827
+ typedef intptr_t(*gpr_stats_read_type)(const gpr_stats_counter* c);
828
+ extern gpr_stats_read_type gpr_stats_read_import;
829
+ #define gpr_stats_read gpr_stats_read_import
830
+ typedef gpr_thd_id(*gpr_thd_currentid_type)(void);
831
+ extern gpr_thd_currentid_type gpr_thd_currentid_import;
832
+ #define gpr_thd_currentid gpr_thd_currentid_import
833
+ typedef gpr_timespec(*gpr_time_0_type)(gpr_clock_type type);
834
+ extern gpr_time_0_type gpr_time_0_import;
835
+ #define gpr_time_0 gpr_time_0_import
836
+ typedef gpr_timespec(*gpr_inf_future_type)(gpr_clock_type type);
837
+ extern gpr_inf_future_type gpr_inf_future_import;
838
+ #define gpr_inf_future gpr_inf_future_import
839
+ typedef gpr_timespec(*gpr_inf_past_type)(gpr_clock_type type);
840
+ extern gpr_inf_past_type gpr_inf_past_import;
841
+ #define gpr_inf_past gpr_inf_past_import
842
+ typedef void(*gpr_time_init_type)(void);
843
+ extern gpr_time_init_type gpr_time_init_import;
844
+ #define gpr_time_init gpr_time_init_import
845
+ typedef gpr_timespec(*gpr_now_type)(gpr_clock_type clock);
846
+ extern gpr_now_type gpr_now_import;
847
+ #define gpr_now gpr_now_import
848
+ typedef gpr_timespec(*gpr_convert_clock_type_type)(gpr_timespec t, gpr_clock_type clock_type);
849
+ extern gpr_convert_clock_type_type gpr_convert_clock_type_import;
850
+ #define gpr_convert_clock_type gpr_convert_clock_type_import
851
+ typedef int(*gpr_time_cmp_type)(gpr_timespec a, gpr_timespec b);
852
+ extern gpr_time_cmp_type gpr_time_cmp_import;
853
+ #define gpr_time_cmp gpr_time_cmp_import
854
+ typedef gpr_timespec(*gpr_time_max_type)(gpr_timespec a, gpr_timespec b);
855
+ extern gpr_time_max_type gpr_time_max_import;
856
+ #define gpr_time_max gpr_time_max_import
857
+ typedef gpr_timespec(*gpr_time_min_type)(gpr_timespec a, gpr_timespec b);
858
+ extern gpr_time_min_type gpr_time_min_import;
859
+ #define gpr_time_min gpr_time_min_import
860
+ typedef gpr_timespec(*gpr_time_add_type)(gpr_timespec a, gpr_timespec b);
861
+ extern gpr_time_add_type gpr_time_add_import;
862
+ #define gpr_time_add gpr_time_add_import
863
+ typedef gpr_timespec(*gpr_time_sub_type)(gpr_timespec a, gpr_timespec b);
864
+ extern gpr_time_sub_type gpr_time_sub_import;
865
+ #define gpr_time_sub gpr_time_sub_import
866
+ typedef gpr_timespec(*gpr_time_from_micros_type)(int64_t us, gpr_clock_type clock_type);
867
+ extern gpr_time_from_micros_type gpr_time_from_micros_import;
868
+ #define gpr_time_from_micros gpr_time_from_micros_import
869
+ typedef gpr_timespec(*gpr_time_from_nanos_type)(int64_t ns, gpr_clock_type clock_type);
870
+ extern gpr_time_from_nanos_type gpr_time_from_nanos_import;
871
+ #define gpr_time_from_nanos gpr_time_from_nanos_import
872
+ typedef gpr_timespec(*gpr_time_from_millis_type)(int64_t ms, gpr_clock_type clock_type);
873
+ extern gpr_time_from_millis_type gpr_time_from_millis_import;
874
+ #define gpr_time_from_millis gpr_time_from_millis_import
875
+ typedef gpr_timespec(*gpr_time_from_seconds_type)(int64_t s, gpr_clock_type clock_type);
876
+ extern gpr_time_from_seconds_type gpr_time_from_seconds_import;
877
+ #define gpr_time_from_seconds gpr_time_from_seconds_import
878
+ typedef gpr_timespec(*gpr_time_from_minutes_type)(int64_t m, gpr_clock_type clock_type);
879
+ extern gpr_time_from_minutes_type gpr_time_from_minutes_import;
880
+ #define gpr_time_from_minutes gpr_time_from_minutes_import
881
+ typedef gpr_timespec(*gpr_time_from_hours_type)(int64_t h, gpr_clock_type clock_type);
882
+ extern gpr_time_from_hours_type gpr_time_from_hours_import;
883
+ #define gpr_time_from_hours gpr_time_from_hours_import
884
+ typedef int32_t(*gpr_time_to_millis_type)(gpr_timespec timespec);
885
+ extern gpr_time_to_millis_type gpr_time_to_millis_import;
886
+ #define gpr_time_to_millis gpr_time_to_millis_import
887
+ typedef int(*gpr_time_similar_type)(gpr_timespec a, gpr_timespec b, gpr_timespec threshold);
888
+ extern gpr_time_similar_type gpr_time_similar_import;
889
+ #define gpr_time_similar gpr_time_similar_import
890
+ typedef void(*gpr_sleep_until_type)(gpr_timespec until);
891
+ extern gpr_sleep_until_type gpr_sleep_until_import;
892
+ #define gpr_sleep_until gpr_sleep_until_import
893
+ typedef double(*gpr_timespec_to_micros_type)(gpr_timespec t);
894
+ extern gpr_timespec_to_micros_type gpr_timespec_to_micros_import;
895
+ #define gpr_timespec_to_micros gpr_timespec_to_micros_import
896
+
897
+ void grpc_rb_load_imports(HMODULE library);
898
+
899
+ #endif /* GPR_WINDOWS */
900
+
901
+ #endif