grpc 1.0.1-universal-darwin → 1.1.2-universal-darwin

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/etc/roots.pem +39 -111
  3. data/src/ruby/ext/grpc/extconf.rb +0 -1
  4. data/src/ruby/ext/grpc/rb_byte_buffer.c +8 -7
  5. data/src/ruby/ext/grpc/rb_call.c +15 -5
  6. data/src/ruby/ext/grpc/rb_channel.c +1 -1
  7. data/src/ruby/ext/grpc/rb_compression_options.c +466 -0
  8. data/src/ruby/ext/grpc/rb_compression_options.h +44 -0
  9. data/src/ruby/ext/grpc/rb_grpc.c +3 -1
  10. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +198 -190
  11. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +306 -294
  12. data/src/ruby/ext/grpc/rb_server.c +18 -12
  13. data/src/ruby/lib/grpc/2.0/grpc_c.bundle +0 -0
  14. data/src/ruby/lib/grpc/2.1/grpc_c.bundle +0 -0
  15. data/src/ruby/lib/grpc/2.2/grpc_c.bundle +0 -0
  16. data/src/ruby/lib/grpc/2.3/grpc_c.bundle +0 -0
  17. data/src/ruby/lib/grpc/2.4/grpc_c.bundle +0 -0
  18. data/src/ruby/lib/grpc/errors.rb +154 -2
  19. data/src/ruby/lib/grpc/generic/active_call.rb +144 -63
  20. data/src/ruby/lib/grpc/generic/bidi_call.rb +18 -2
  21. data/src/ruby/lib/grpc/generic/client_stub.rb +7 -5
  22. data/src/ruby/lib/grpc/generic/rpc_desc.rb +39 -13
  23. data/src/ruby/lib/grpc/generic/rpc_server.rb +51 -24
  24. data/src/ruby/lib/grpc/generic/service.rb +3 -2
  25. data/src/ruby/lib/grpc/version.rb +1 -1
  26. data/src/ruby/pb/grpc/health/checker.rb +3 -1
  27. data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +7 -0
  28. data/src/ruby/pb/test/client.rb +307 -7
  29. data/src/ruby/pb/test/server.rb +26 -1
  30. data/src/ruby/spec/compression_options_spec.rb +164 -0
  31. data/src/ruby/spec/error_sanity_spec.rb +64 -0
  32. data/src/ruby/spec/generic/active_call_spec.rb +290 -12
  33. data/src/ruby/spec/generic/client_stub_spec.rb +91 -41
  34. data/src/ruby/spec/generic/rpc_desc_spec.rb +36 -16
  35. data/src/ruby/spec/generic/rpc_server_pool_spec.rb +22 -28
  36. data/src/ruby/spec/generic/rpc_server_spec.rb +6 -6
  37. data/src/ruby/spec/pb/health/checker_spec.rb +27 -19
  38. data/src/ruby/spec/spec_helper.rb +2 -0
  39. metadata +18 -8
@@ -0,0 +1,44 @@
1
+ /*
2
+ *
3
+ * Copyright 2015, Google Inc.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are
8
+ * met:
9
+ *
10
+ * * Redistributions of source code must retain the above copyright
11
+ * notice, this list of conditions and the following disclaimer.
12
+ * * Redistributions in binary form must reproduce the above
13
+ * copyright notice, this list of conditions and the following disclaimer
14
+ * in the documentation and/or other materials provided with the
15
+ * distribution.
16
+ * * Neither the name of Google Inc. nor the names of its
17
+ * contributors may be used to endorse or promote products derived from
18
+ * this software without specific prior written permission.
19
+ *
20
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ *
32
+ */
33
+
34
+ #ifndef GRPC_RB_COMPRESSION_OPTIONS_H_
35
+ #define GRPC_RB_COMPRESSION_OPTIONS_H_
36
+
37
+ #include <ruby/ruby.h>
38
+
39
+ #include <grpc/grpc.h>
40
+
41
+ /* Initializes the compression options ruby wrapper. */
42
+ void Init_grpc_compression_options();
43
+
44
+ #endif /* GRPC_RB_COMPRESSION_OPTIONS_H_ */
@@ -49,6 +49,7 @@
49
49
  #include "rb_loader.h"
50
50
  #include "rb_server.h"
51
51
  #include "rb_server_credentials.h"
52
+ #include "rb_compression_options.h"
52
53
 
53
54
  static VALUE grpc_rb_cTimeVal = Qnil;
54
55
 
@@ -220,7 +221,7 @@ static VALUE grpc_rb_time_val_to_time(VALUE self) {
220
221
  time_const);
221
222
  real_time = gpr_convert_clock_type(*time_const, GPR_CLOCK_REALTIME);
222
223
  return rb_funcall(rb_cTime, id_at, 2, INT2NUM(real_time.tv_sec),
223
- INT2NUM(real_time.tv_nsec));
224
+ INT2NUM(real_time.tv_nsec / 1000));
224
225
  }
225
226
 
226
227
  /* Invokes inspect on the ctime version of the time val. */
@@ -332,4 +333,5 @@ void Init_grpc_c() {
332
333
  Init_grpc_server_credentials();
333
334
  Init_grpc_status_codes();
334
335
  Init_grpc_time_consts();
336
+ Init_grpc_compression_options();
335
337
  }
@@ -37,6 +37,16 @@
37
37
 
38
38
  #include "rb_grpc_imports.generated.h"
39
39
 
40
+ grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
41
+ grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import;
42
+ grpc_byte_buffer_copy_type grpc_byte_buffer_copy_import;
43
+ grpc_byte_buffer_length_type grpc_byte_buffer_length_import;
44
+ grpc_byte_buffer_destroy_type grpc_byte_buffer_destroy_import;
45
+ grpc_byte_buffer_reader_init_type grpc_byte_buffer_reader_init_import;
46
+ grpc_byte_buffer_reader_destroy_type grpc_byte_buffer_reader_destroy_import;
47
+ grpc_byte_buffer_reader_next_type grpc_byte_buffer_reader_next_import;
48
+ grpc_byte_buffer_reader_readall_type grpc_byte_buffer_reader_readall_import;
49
+ grpc_raw_byte_buffer_from_reader_type grpc_raw_byte_buffer_from_reader_import;
40
50
  census_initialize_type census_initialize_import;
41
51
  census_shutdown_type census_shutdown_import;
42
52
  census_supported_type census_supported_import;
@@ -61,15 +71,10 @@ census_trace_print_type census_trace_print_import;
61
71
  census_trace_scan_start_type census_trace_scan_start_import;
62
72
  census_get_trace_record_type census_get_trace_record_import;
63
73
  census_trace_scan_end_type census_trace_scan_end_import;
74
+ census_define_resource_type census_define_resource_import;
75
+ census_delete_resource_type census_delete_resource_import;
76
+ census_resource_id_type census_resource_id_import;
64
77
  census_record_values_type census_record_values_import;
65
- census_view_create_type census_view_create_import;
66
- census_view_delete_type census_view_delete_import;
67
- census_view_metric_type census_view_metric_import;
68
- census_view_naggregations_type census_view_naggregations_import;
69
- census_view_tags_type census_view_tags_import;
70
- census_view_aggregrations_type census_view_aggregrations_import;
71
- census_view_get_data_type census_view_get_data_import;
72
- census_view_reset_type census_view_reset_import;
73
78
  grpc_compression_algorithm_parse_type grpc_compression_algorithm_parse_import;
74
79
  grpc_compression_algorithm_name_type grpc_compression_algorithm_name_import;
75
80
  grpc_compression_algorithm_for_level_type grpc_compression_algorithm_for_level_import;
@@ -85,6 +90,7 @@ grpc_register_plugin_type grpc_register_plugin_import;
85
90
  grpc_init_type grpc_init_import;
86
91
  grpc_shutdown_type grpc_shutdown_import;
87
92
  grpc_version_string_type grpc_version_string_import;
93
+ grpc_g_stands_for_type grpc_g_stands_for_import;
88
94
  grpc_completion_queue_create_type grpc_completion_queue_create_import;
89
95
  grpc_completion_queue_next_type grpc_completion_queue_next_import;
90
96
  grpc_completion_queue_pluck_type grpc_completion_queue_pluck_import;
@@ -104,6 +110,7 @@ grpc_call_get_peer_type grpc_call_get_peer_import;
104
110
  grpc_census_call_set_context_type grpc_census_call_set_context_import;
105
111
  grpc_census_call_get_context_type grpc_census_call_get_context_import;
106
112
  grpc_channel_get_target_type grpc_channel_get_target_import;
113
+ grpc_channel_get_info_type grpc_channel_get_info_import;
107
114
  grpc_insecure_channel_create_type grpc_insecure_channel_create_import;
108
115
  grpc_lame_client_channel_create_type grpc_lame_client_channel_create_import;
109
116
  grpc_channel_destroy_type grpc_channel_destroy_import;
@@ -126,6 +133,11 @@ grpc_header_key_is_legal_type grpc_header_key_is_legal_import;
126
133
  grpc_header_nonbin_value_is_legal_type grpc_header_nonbin_value_is_legal_import;
127
134
  grpc_is_binary_header_type grpc_is_binary_header_import;
128
135
  grpc_call_error_to_string_type grpc_call_error_to_string_import;
136
+ grpc_resource_quota_create_type grpc_resource_quota_create_import;
137
+ grpc_resource_quota_ref_type grpc_resource_quota_ref_import;
138
+ grpc_resource_quota_unref_type grpc_resource_quota_unref_import;
139
+ grpc_resource_quota_resize_type grpc_resource_quota_resize_import;
140
+ grpc_resource_quota_arg_vtable_type grpc_resource_quota_arg_vtable_import;
129
141
  grpc_insecure_channel_create_from_fd_type grpc_insecure_channel_create_from_fd_import;
130
142
  grpc_server_add_insecure_channel_from_fd_type grpc_server_add_insecure_channel_from_fd_import;
131
143
  grpc_use_signal_type grpc_use_signal_import;
@@ -161,6 +173,36 @@ grpc_ssl_server_credentials_create_ex_type grpc_ssl_server_credentials_create_ex
161
173
  grpc_server_add_secure_http2_port_type grpc_server_add_secure_http2_port_import;
162
174
  grpc_call_set_credentials_type grpc_call_set_credentials_import;
163
175
  grpc_server_credentials_set_auth_metadata_processor_type grpc_server_credentials_set_auth_metadata_processor_import;
176
+ grpc_slice_ref_type grpc_slice_ref_import;
177
+ grpc_slice_unref_type grpc_slice_unref_import;
178
+ grpc_slice_new_type grpc_slice_new_import;
179
+ grpc_slice_new_with_user_data_type grpc_slice_new_with_user_data_import;
180
+ grpc_slice_new_with_len_type grpc_slice_new_with_len_import;
181
+ grpc_slice_malloc_type grpc_slice_malloc_import;
182
+ grpc_slice_from_copied_string_type grpc_slice_from_copied_string_import;
183
+ grpc_slice_from_copied_buffer_type grpc_slice_from_copied_buffer_import;
184
+ grpc_slice_from_static_string_type grpc_slice_from_static_string_import;
185
+ grpc_slice_sub_type grpc_slice_sub_import;
186
+ grpc_slice_sub_no_ref_type grpc_slice_sub_no_ref_import;
187
+ grpc_slice_split_tail_type grpc_slice_split_tail_import;
188
+ grpc_slice_split_head_type grpc_slice_split_head_import;
189
+ gpr_empty_slice_type gpr_empty_slice_import;
190
+ grpc_slice_cmp_type grpc_slice_cmp_import;
191
+ grpc_slice_str_cmp_type grpc_slice_str_cmp_import;
192
+ grpc_slice_is_equivalent_type grpc_slice_is_equivalent_import;
193
+ grpc_slice_buffer_init_type grpc_slice_buffer_init_import;
194
+ grpc_slice_buffer_destroy_type grpc_slice_buffer_destroy_import;
195
+ grpc_slice_buffer_add_type grpc_slice_buffer_add_import;
196
+ grpc_slice_buffer_add_indexed_type grpc_slice_buffer_add_indexed_import;
197
+ grpc_slice_buffer_addn_type grpc_slice_buffer_addn_import;
198
+ grpc_slice_buffer_tiny_add_type grpc_slice_buffer_tiny_add_import;
199
+ grpc_slice_buffer_pop_type grpc_slice_buffer_pop_import;
200
+ grpc_slice_buffer_reset_and_unref_type grpc_slice_buffer_reset_and_unref_import;
201
+ grpc_slice_buffer_swap_type grpc_slice_buffer_swap_import;
202
+ grpc_slice_buffer_move_into_type grpc_slice_buffer_move_into_import;
203
+ grpc_slice_buffer_trim_end_type grpc_slice_buffer_trim_end_import;
204
+ grpc_slice_buffer_move_first_type grpc_slice_buffer_move_first_import;
205
+ grpc_slice_buffer_take_first_type grpc_slice_buffer_take_first_import;
164
206
  gpr_malloc_type gpr_malloc_import;
165
207
  gpr_free_type gpr_free_import;
166
208
  gpr_realloc_type gpr_realloc_import;
@@ -168,93 +210,6 @@ gpr_malloc_aligned_type gpr_malloc_aligned_import;
168
210
  gpr_free_aligned_type gpr_free_aligned_import;
169
211
  gpr_set_allocation_functions_type gpr_set_allocation_functions_import;
170
212
  gpr_get_allocation_functions_type gpr_get_allocation_functions_import;
171
- grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
172
- grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import;
173
- grpc_byte_buffer_copy_type grpc_byte_buffer_copy_import;
174
- grpc_byte_buffer_length_type grpc_byte_buffer_length_import;
175
- grpc_byte_buffer_destroy_type grpc_byte_buffer_destroy_import;
176
- grpc_byte_buffer_reader_init_type grpc_byte_buffer_reader_init_import;
177
- grpc_byte_buffer_reader_destroy_type grpc_byte_buffer_reader_destroy_import;
178
- grpc_byte_buffer_reader_next_type grpc_byte_buffer_reader_next_import;
179
- grpc_byte_buffer_reader_readall_type grpc_byte_buffer_reader_readall_import;
180
- grpc_raw_byte_buffer_from_reader_type grpc_raw_byte_buffer_from_reader_import;
181
- gpr_log_type gpr_log_import;
182
- gpr_log_message_type gpr_log_message_import;
183
- gpr_set_log_verbosity_type gpr_set_log_verbosity_import;
184
- gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
185
- gpr_set_log_function_type gpr_set_log_function_import;
186
- gpr_slice_ref_type gpr_slice_ref_import;
187
- gpr_slice_unref_type gpr_slice_unref_import;
188
- gpr_slice_new_type gpr_slice_new_import;
189
- gpr_slice_new_with_len_type gpr_slice_new_with_len_import;
190
- gpr_slice_malloc_type gpr_slice_malloc_import;
191
- gpr_slice_from_copied_string_type gpr_slice_from_copied_string_import;
192
- gpr_slice_from_copied_buffer_type gpr_slice_from_copied_buffer_import;
193
- gpr_slice_from_static_string_type gpr_slice_from_static_string_import;
194
- gpr_slice_sub_type gpr_slice_sub_import;
195
- gpr_slice_sub_no_ref_type gpr_slice_sub_no_ref_import;
196
- gpr_slice_split_tail_type gpr_slice_split_tail_import;
197
- gpr_slice_split_head_type gpr_slice_split_head_import;
198
- gpr_empty_slice_type gpr_empty_slice_import;
199
- gpr_slice_cmp_type gpr_slice_cmp_import;
200
- gpr_slice_str_cmp_type gpr_slice_str_cmp_import;
201
- gpr_slice_buffer_init_type gpr_slice_buffer_init_import;
202
- gpr_slice_buffer_destroy_type gpr_slice_buffer_destroy_import;
203
- gpr_slice_buffer_add_type gpr_slice_buffer_add_import;
204
- gpr_slice_buffer_add_indexed_type gpr_slice_buffer_add_indexed_import;
205
- gpr_slice_buffer_addn_type gpr_slice_buffer_addn_import;
206
- gpr_slice_buffer_tiny_add_type gpr_slice_buffer_tiny_add_import;
207
- gpr_slice_buffer_pop_type gpr_slice_buffer_pop_import;
208
- gpr_slice_buffer_reset_and_unref_type gpr_slice_buffer_reset_and_unref_import;
209
- gpr_slice_buffer_swap_type gpr_slice_buffer_swap_import;
210
- gpr_slice_buffer_move_into_type gpr_slice_buffer_move_into_import;
211
- gpr_slice_buffer_trim_end_type gpr_slice_buffer_trim_end_import;
212
- gpr_slice_buffer_move_first_type gpr_slice_buffer_move_first_import;
213
- gpr_slice_buffer_take_first_type gpr_slice_buffer_take_first_import;
214
- gpr_mu_init_type gpr_mu_init_import;
215
- gpr_mu_destroy_type gpr_mu_destroy_import;
216
- gpr_mu_lock_type gpr_mu_lock_import;
217
- gpr_mu_unlock_type gpr_mu_unlock_import;
218
- gpr_mu_trylock_type gpr_mu_trylock_import;
219
- gpr_cv_init_type gpr_cv_init_import;
220
- gpr_cv_destroy_type gpr_cv_destroy_import;
221
- gpr_cv_wait_type gpr_cv_wait_import;
222
- gpr_cv_signal_type gpr_cv_signal_import;
223
- gpr_cv_broadcast_type gpr_cv_broadcast_import;
224
- gpr_once_init_type gpr_once_init_import;
225
- gpr_event_init_type gpr_event_init_import;
226
- gpr_event_set_type gpr_event_set_import;
227
- gpr_event_get_type gpr_event_get_import;
228
- gpr_event_wait_type gpr_event_wait_import;
229
- gpr_ref_init_type gpr_ref_init_import;
230
- gpr_ref_type gpr_ref_import;
231
- gpr_ref_non_zero_type gpr_ref_non_zero_import;
232
- gpr_refn_type gpr_refn_import;
233
- gpr_unref_type gpr_unref_import;
234
- gpr_stats_init_type gpr_stats_init_import;
235
- gpr_stats_inc_type gpr_stats_inc_import;
236
- gpr_stats_read_type gpr_stats_read_import;
237
- gpr_time_0_type gpr_time_0_import;
238
- gpr_inf_future_type gpr_inf_future_import;
239
- gpr_inf_past_type gpr_inf_past_import;
240
- gpr_time_init_type gpr_time_init_import;
241
- gpr_now_type gpr_now_import;
242
- gpr_convert_clock_type_type gpr_convert_clock_type_import;
243
- gpr_time_cmp_type gpr_time_cmp_import;
244
- gpr_time_max_type gpr_time_max_import;
245
- gpr_time_min_type gpr_time_min_import;
246
- gpr_time_add_type gpr_time_add_import;
247
- gpr_time_sub_type gpr_time_sub_import;
248
- gpr_time_from_micros_type gpr_time_from_micros_import;
249
- gpr_time_from_nanos_type gpr_time_from_nanos_import;
250
- gpr_time_from_millis_type gpr_time_from_millis_import;
251
- gpr_time_from_seconds_type gpr_time_from_seconds_import;
252
- gpr_time_from_minutes_type gpr_time_from_minutes_import;
253
- gpr_time_from_hours_type gpr_time_from_hours_import;
254
- gpr_time_to_millis_type gpr_time_to_millis_import;
255
- gpr_time_similar_type gpr_time_similar_import;
256
- gpr_sleep_until_type gpr_sleep_until_import;
257
- gpr_timespec_to_micros_type gpr_timespec_to_micros_import;
258
213
  gpr_avl_create_type gpr_avl_create_import;
259
214
  gpr_avl_ref_type gpr_avl_ref_import;
260
215
  gpr_avl_unref_type gpr_avl_unref_import;
@@ -291,6 +246,11 @@ gpr_histogram_get_contents_type gpr_histogram_get_contents_import;
291
246
  gpr_histogram_merge_contents_type gpr_histogram_merge_contents_import;
292
247
  gpr_join_host_port_type gpr_join_host_port_import;
293
248
  gpr_split_host_port_type gpr_split_host_port_import;
249
+ gpr_log_type gpr_log_import;
250
+ gpr_log_message_type gpr_log_message_import;
251
+ gpr_set_log_verbosity_type gpr_set_log_verbosity_import;
252
+ gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
253
+ gpr_set_log_function_type gpr_set_log_function_import;
294
254
  gpr_format_message_type gpr_format_message_import;
295
255
  gpr_strdup_type gpr_strdup_import;
296
256
  gpr_asprintf_type gpr_asprintf_import;
@@ -299,6 +259,29 @@ gpr_subprocess_create_type gpr_subprocess_create_import;
299
259
  gpr_subprocess_destroy_type gpr_subprocess_destroy_import;
300
260
  gpr_subprocess_join_type gpr_subprocess_join_import;
301
261
  gpr_subprocess_interrupt_type gpr_subprocess_interrupt_import;
262
+ gpr_mu_init_type gpr_mu_init_import;
263
+ gpr_mu_destroy_type gpr_mu_destroy_import;
264
+ gpr_mu_lock_type gpr_mu_lock_import;
265
+ gpr_mu_unlock_type gpr_mu_unlock_import;
266
+ gpr_mu_trylock_type gpr_mu_trylock_import;
267
+ gpr_cv_init_type gpr_cv_init_import;
268
+ gpr_cv_destroy_type gpr_cv_destroy_import;
269
+ gpr_cv_wait_type gpr_cv_wait_import;
270
+ gpr_cv_signal_type gpr_cv_signal_import;
271
+ gpr_cv_broadcast_type gpr_cv_broadcast_import;
272
+ gpr_once_init_type gpr_once_init_import;
273
+ gpr_event_init_type gpr_event_init_import;
274
+ gpr_event_set_type gpr_event_set_import;
275
+ gpr_event_get_type gpr_event_get_import;
276
+ gpr_event_wait_type gpr_event_wait_import;
277
+ gpr_ref_init_type gpr_ref_init_import;
278
+ gpr_ref_type gpr_ref_import;
279
+ gpr_ref_non_zero_type gpr_ref_non_zero_import;
280
+ gpr_refn_type gpr_refn_import;
281
+ gpr_unref_type gpr_unref_import;
282
+ gpr_stats_init_type gpr_stats_init_import;
283
+ gpr_stats_inc_type gpr_stats_inc_import;
284
+ gpr_stats_read_type gpr_stats_read_import;
302
285
  gpr_thd_new_type gpr_thd_new_import;
303
286
  gpr_thd_options_default_type gpr_thd_options_default_import;
304
287
  gpr_thd_options_set_detached_type gpr_thd_options_set_detached_import;
@@ -307,8 +290,39 @@ gpr_thd_options_is_detached_type gpr_thd_options_is_detached_import;
307
290
  gpr_thd_options_is_joinable_type gpr_thd_options_is_joinable_import;
308
291
  gpr_thd_currentid_type gpr_thd_currentid_import;
309
292
  gpr_thd_join_type gpr_thd_join_import;
293
+ gpr_time_0_type gpr_time_0_import;
294
+ gpr_inf_future_type gpr_inf_future_import;
295
+ gpr_inf_past_type gpr_inf_past_import;
296
+ gpr_time_init_type gpr_time_init_import;
297
+ gpr_now_type gpr_now_import;
298
+ gpr_convert_clock_type_type gpr_convert_clock_type_import;
299
+ gpr_time_cmp_type gpr_time_cmp_import;
300
+ gpr_time_max_type gpr_time_max_import;
301
+ gpr_time_min_type gpr_time_min_import;
302
+ gpr_time_add_type gpr_time_add_import;
303
+ gpr_time_sub_type gpr_time_sub_import;
304
+ gpr_time_from_micros_type gpr_time_from_micros_import;
305
+ gpr_time_from_nanos_type gpr_time_from_nanos_import;
306
+ gpr_time_from_millis_type gpr_time_from_millis_import;
307
+ gpr_time_from_seconds_type gpr_time_from_seconds_import;
308
+ gpr_time_from_minutes_type gpr_time_from_minutes_import;
309
+ gpr_time_from_hours_type gpr_time_from_hours_import;
310
+ gpr_time_to_millis_type gpr_time_to_millis_import;
311
+ gpr_time_similar_type gpr_time_similar_import;
312
+ gpr_sleep_until_type gpr_sleep_until_import;
313
+ gpr_timespec_to_micros_type gpr_timespec_to_micros_import;
310
314
 
311
315
  void grpc_rb_load_imports(HMODULE library) {
316
+ grpc_raw_byte_buffer_create_import = (grpc_raw_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_byte_buffer_create");
317
+ grpc_raw_compressed_byte_buffer_create_import = (grpc_raw_compressed_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_compressed_byte_buffer_create");
318
+ grpc_byte_buffer_copy_import = (grpc_byte_buffer_copy_type) GetProcAddress(library, "grpc_byte_buffer_copy");
319
+ grpc_byte_buffer_length_import = (grpc_byte_buffer_length_type) GetProcAddress(library, "grpc_byte_buffer_length");
320
+ grpc_byte_buffer_destroy_import = (grpc_byte_buffer_destroy_type) GetProcAddress(library, "grpc_byte_buffer_destroy");
321
+ grpc_byte_buffer_reader_init_import = (grpc_byte_buffer_reader_init_type) GetProcAddress(library, "grpc_byte_buffer_reader_init");
322
+ grpc_byte_buffer_reader_destroy_import = (grpc_byte_buffer_reader_destroy_type) GetProcAddress(library, "grpc_byte_buffer_reader_destroy");
323
+ grpc_byte_buffer_reader_next_import = (grpc_byte_buffer_reader_next_type) GetProcAddress(library, "grpc_byte_buffer_reader_next");
324
+ grpc_byte_buffer_reader_readall_import = (grpc_byte_buffer_reader_readall_type) GetProcAddress(library, "grpc_byte_buffer_reader_readall");
325
+ grpc_raw_byte_buffer_from_reader_import = (grpc_raw_byte_buffer_from_reader_type) GetProcAddress(library, "grpc_raw_byte_buffer_from_reader");
312
326
  census_initialize_import = (census_initialize_type) GetProcAddress(library, "census_initialize");
313
327
  census_shutdown_import = (census_shutdown_type) GetProcAddress(library, "census_shutdown");
314
328
  census_supported_import = (census_supported_type) GetProcAddress(library, "census_supported");
@@ -333,15 +347,10 @@ void grpc_rb_load_imports(HMODULE library) {
333
347
  census_trace_scan_start_import = (census_trace_scan_start_type) GetProcAddress(library, "census_trace_scan_start");
334
348
  census_get_trace_record_import = (census_get_trace_record_type) GetProcAddress(library, "census_get_trace_record");
335
349
  census_trace_scan_end_import = (census_trace_scan_end_type) GetProcAddress(library, "census_trace_scan_end");
350
+ census_define_resource_import = (census_define_resource_type) GetProcAddress(library, "census_define_resource");
351
+ census_delete_resource_import = (census_delete_resource_type) GetProcAddress(library, "census_delete_resource");
352
+ census_resource_id_import = (census_resource_id_type) GetProcAddress(library, "census_resource_id");
336
353
  census_record_values_import = (census_record_values_type) GetProcAddress(library, "census_record_values");
337
- census_view_create_import = (census_view_create_type) GetProcAddress(library, "census_view_create");
338
- census_view_delete_import = (census_view_delete_type) GetProcAddress(library, "census_view_delete");
339
- census_view_metric_import = (census_view_metric_type) GetProcAddress(library, "census_view_metric");
340
- census_view_naggregations_import = (census_view_naggregations_type) GetProcAddress(library, "census_view_naggregations");
341
- census_view_tags_import = (census_view_tags_type) GetProcAddress(library, "census_view_tags");
342
- census_view_aggregrations_import = (census_view_aggregrations_type) GetProcAddress(library, "census_view_aggregrations");
343
- census_view_get_data_import = (census_view_get_data_type) GetProcAddress(library, "census_view_get_data");
344
- census_view_reset_import = (census_view_reset_type) GetProcAddress(library, "census_view_reset");
345
354
  grpc_compression_algorithm_parse_import = (grpc_compression_algorithm_parse_type) GetProcAddress(library, "grpc_compression_algorithm_parse");
346
355
  grpc_compression_algorithm_name_import = (grpc_compression_algorithm_name_type) GetProcAddress(library, "grpc_compression_algorithm_name");
347
356
  grpc_compression_algorithm_for_level_import = (grpc_compression_algorithm_for_level_type) GetProcAddress(library, "grpc_compression_algorithm_for_level");
@@ -357,6 +366,7 @@ void grpc_rb_load_imports(HMODULE library) {
357
366
  grpc_init_import = (grpc_init_type) GetProcAddress(library, "grpc_init");
358
367
  grpc_shutdown_import = (grpc_shutdown_type) GetProcAddress(library, "grpc_shutdown");
359
368
  grpc_version_string_import = (grpc_version_string_type) GetProcAddress(library, "grpc_version_string");
369
+ grpc_g_stands_for_import = (grpc_g_stands_for_type) GetProcAddress(library, "grpc_g_stands_for");
360
370
  grpc_completion_queue_create_import = (grpc_completion_queue_create_type) GetProcAddress(library, "grpc_completion_queue_create");
361
371
  grpc_completion_queue_next_import = (grpc_completion_queue_next_type) GetProcAddress(library, "grpc_completion_queue_next");
362
372
  grpc_completion_queue_pluck_import = (grpc_completion_queue_pluck_type) GetProcAddress(library, "grpc_completion_queue_pluck");
@@ -376,6 +386,7 @@ void grpc_rb_load_imports(HMODULE library) {
376
386
  grpc_census_call_set_context_import = (grpc_census_call_set_context_type) GetProcAddress(library, "grpc_census_call_set_context");
377
387
  grpc_census_call_get_context_import = (grpc_census_call_get_context_type) GetProcAddress(library, "grpc_census_call_get_context");
378
388
  grpc_channel_get_target_import = (grpc_channel_get_target_type) GetProcAddress(library, "grpc_channel_get_target");
389
+ grpc_channel_get_info_import = (grpc_channel_get_info_type) GetProcAddress(library, "grpc_channel_get_info");
379
390
  grpc_insecure_channel_create_import = (grpc_insecure_channel_create_type) GetProcAddress(library, "grpc_insecure_channel_create");
380
391
  grpc_lame_client_channel_create_import = (grpc_lame_client_channel_create_type) GetProcAddress(library, "grpc_lame_client_channel_create");
381
392
  grpc_channel_destroy_import = (grpc_channel_destroy_type) GetProcAddress(library, "grpc_channel_destroy");
@@ -398,6 +409,11 @@ void grpc_rb_load_imports(HMODULE library) {
398
409
  grpc_header_nonbin_value_is_legal_import = (grpc_header_nonbin_value_is_legal_type) GetProcAddress(library, "grpc_header_nonbin_value_is_legal");
399
410
  grpc_is_binary_header_import = (grpc_is_binary_header_type) GetProcAddress(library, "grpc_is_binary_header");
400
411
  grpc_call_error_to_string_import = (grpc_call_error_to_string_type) GetProcAddress(library, "grpc_call_error_to_string");
412
+ grpc_resource_quota_create_import = (grpc_resource_quota_create_type) GetProcAddress(library, "grpc_resource_quota_create");
413
+ grpc_resource_quota_ref_import = (grpc_resource_quota_ref_type) GetProcAddress(library, "grpc_resource_quota_ref");
414
+ grpc_resource_quota_unref_import = (grpc_resource_quota_unref_type) GetProcAddress(library, "grpc_resource_quota_unref");
415
+ grpc_resource_quota_resize_import = (grpc_resource_quota_resize_type) GetProcAddress(library, "grpc_resource_quota_resize");
416
+ grpc_resource_quota_arg_vtable_import = (grpc_resource_quota_arg_vtable_type) GetProcAddress(library, "grpc_resource_quota_arg_vtable");
401
417
  grpc_insecure_channel_create_from_fd_import = (grpc_insecure_channel_create_from_fd_type) GetProcAddress(library, "grpc_insecure_channel_create_from_fd");
402
418
  grpc_server_add_insecure_channel_from_fd_import = (grpc_server_add_insecure_channel_from_fd_type) GetProcAddress(library, "grpc_server_add_insecure_channel_from_fd");
403
419
  grpc_use_signal_import = (grpc_use_signal_type) GetProcAddress(library, "grpc_use_signal");
@@ -433,6 +449,36 @@ void grpc_rb_load_imports(HMODULE library) {
433
449
  grpc_server_add_secure_http2_port_import = (grpc_server_add_secure_http2_port_type) GetProcAddress(library, "grpc_server_add_secure_http2_port");
434
450
  grpc_call_set_credentials_import = (grpc_call_set_credentials_type) GetProcAddress(library, "grpc_call_set_credentials");
435
451
  grpc_server_credentials_set_auth_metadata_processor_import = (grpc_server_credentials_set_auth_metadata_processor_type) GetProcAddress(library, "grpc_server_credentials_set_auth_metadata_processor");
452
+ grpc_slice_ref_import = (grpc_slice_ref_type) GetProcAddress(library, "grpc_slice_ref");
453
+ grpc_slice_unref_import = (grpc_slice_unref_type) GetProcAddress(library, "grpc_slice_unref");
454
+ grpc_slice_new_import = (grpc_slice_new_type) GetProcAddress(library, "grpc_slice_new");
455
+ grpc_slice_new_with_user_data_import = (grpc_slice_new_with_user_data_type) GetProcAddress(library, "grpc_slice_new_with_user_data");
456
+ grpc_slice_new_with_len_import = (grpc_slice_new_with_len_type) GetProcAddress(library, "grpc_slice_new_with_len");
457
+ grpc_slice_malloc_import = (grpc_slice_malloc_type) GetProcAddress(library, "grpc_slice_malloc");
458
+ grpc_slice_from_copied_string_import = (grpc_slice_from_copied_string_type) GetProcAddress(library, "grpc_slice_from_copied_string");
459
+ grpc_slice_from_copied_buffer_import = (grpc_slice_from_copied_buffer_type) GetProcAddress(library, "grpc_slice_from_copied_buffer");
460
+ grpc_slice_from_static_string_import = (grpc_slice_from_static_string_type) GetProcAddress(library, "grpc_slice_from_static_string");
461
+ grpc_slice_sub_import = (grpc_slice_sub_type) GetProcAddress(library, "grpc_slice_sub");
462
+ grpc_slice_sub_no_ref_import = (grpc_slice_sub_no_ref_type) GetProcAddress(library, "grpc_slice_sub_no_ref");
463
+ grpc_slice_split_tail_import = (grpc_slice_split_tail_type) GetProcAddress(library, "grpc_slice_split_tail");
464
+ grpc_slice_split_head_import = (grpc_slice_split_head_type) GetProcAddress(library, "grpc_slice_split_head");
465
+ gpr_empty_slice_import = (gpr_empty_slice_type) GetProcAddress(library, "gpr_empty_slice");
466
+ grpc_slice_cmp_import = (grpc_slice_cmp_type) GetProcAddress(library, "grpc_slice_cmp");
467
+ grpc_slice_str_cmp_import = (grpc_slice_str_cmp_type) GetProcAddress(library, "grpc_slice_str_cmp");
468
+ grpc_slice_is_equivalent_import = (grpc_slice_is_equivalent_type) GetProcAddress(library, "grpc_slice_is_equivalent");
469
+ grpc_slice_buffer_init_import = (grpc_slice_buffer_init_type) GetProcAddress(library, "grpc_slice_buffer_init");
470
+ grpc_slice_buffer_destroy_import = (grpc_slice_buffer_destroy_type) GetProcAddress(library, "grpc_slice_buffer_destroy");
471
+ grpc_slice_buffer_add_import = (grpc_slice_buffer_add_type) GetProcAddress(library, "grpc_slice_buffer_add");
472
+ grpc_slice_buffer_add_indexed_import = (grpc_slice_buffer_add_indexed_type) GetProcAddress(library, "grpc_slice_buffer_add_indexed");
473
+ grpc_slice_buffer_addn_import = (grpc_slice_buffer_addn_type) GetProcAddress(library, "grpc_slice_buffer_addn");
474
+ grpc_slice_buffer_tiny_add_import = (grpc_slice_buffer_tiny_add_type) GetProcAddress(library, "grpc_slice_buffer_tiny_add");
475
+ grpc_slice_buffer_pop_import = (grpc_slice_buffer_pop_type) GetProcAddress(library, "grpc_slice_buffer_pop");
476
+ grpc_slice_buffer_reset_and_unref_import = (grpc_slice_buffer_reset_and_unref_type) GetProcAddress(library, "grpc_slice_buffer_reset_and_unref");
477
+ grpc_slice_buffer_swap_import = (grpc_slice_buffer_swap_type) GetProcAddress(library, "grpc_slice_buffer_swap");
478
+ grpc_slice_buffer_move_into_import = (grpc_slice_buffer_move_into_type) GetProcAddress(library, "grpc_slice_buffer_move_into");
479
+ grpc_slice_buffer_trim_end_import = (grpc_slice_buffer_trim_end_type) GetProcAddress(library, "grpc_slice_buffer_trim_end");
480
+ grpc_slice_buffer_move_first_import = (grpc_slice_buffer_move_first_type) GetProcAddress(library, "grpc_slice_buffer_move_first");
481
+ grpc_slice_buffer_take_first_import = (grpc_slice_buffer_take_first_type) GetProcAddress(library, "grpc_slice_buffer_take_first");
436
482
  gpr_malloc_import = (gpr_malloc_type) GetProcAddress(library, "gpr_malloc");
437
483
  gpr_free_import = (gpr_free_type) GetProcAddress(library, "gpr_free");
438
484
  gpr_realloc_import = (gpr_realloc_type) GetProcAddress(library, "gpr_realloc");
@@ -440,93 +486,6 @@ void grpc_rb_load_imports(HMODULE library) {
440
486
  gpr_free_aligned_import = (gpr_free_aligned_type) GetProcAddress(library, "gpr_free_aligned");
441
487
  gpr_set_allocation_functions_import = (gpr_set_allocation_functions_type) GetProcAddress(library, "gpr_set_allocation_functions");
442
488
  gpr_get_allocation_functions_import = (gpr_get_allocation_functions_type) GetProcAddress(library, "gpr_get_allocation_functions");
443
- grpc_raw_byte_buffer_create_import = (grpc_raw_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_byte_buffer_create");
444
- grpc_raw_compressed_byte_buffer_create_import = (grpc_raw_compressed_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_compressed_byte_buffer_create");
445
- grpc_byte_buffer_copy_import = (grpc_byte_buffer_copy_type) GetProcAddress(library, "grpc_byte_buffer_copy");
446
- grpc_byte_buffer_length_import = (grpc_byte_buffer_length_type) GetProcAddress(library, "grpc_byte_buffer_length");
447
- grpc_byte_buffer_destroy_import = (grpc_byte_buffer_destroy_type) GetProcAddress(library, "grpc_byte_buffer_destroy");
448
- grpc_byte_buffer_reader_init_import = (grpc_byte_buffer_reader_init_type) GetProcAddress(library, "grpc_byte_buffer_reader_init");
449
- grpc_byte_buffer_reader_destroy_import = (grpc_byte_buffer_reader_destroy_type) GetProcAddress(library, "grpc_byte_buffer_reader_destroy");
450
- grpc_byte_buffer_reader_next_import = (grpc_byte_buffer_reader_next_type) GetProcAddress(library, "grpc_byte_buffer_reader_next");
451
- grpc_byte_buffer_reader_readall_import = (grpc_byte_buffer_reader_readall_type) GetProcAddress(library, "grpc_byte_buffer_reader_readall");
452
- grpc_raw_byte_buffer_from_reader_import = (grpc_raw_byte_buffer_from_reader_type) GetProcAddress(library, "grpc_raw_byte_buffer_from_reader");
453
- gpr_log_import = (gpr_log_type) GetProcAddress(library, "gpr_log");
454
- gpr_log_message_import = (gpr_log_message_type) GetProcAddress(library, "gpr_log_message");
455
- gpr_set_log_verbosity_import = (gpr_set_log_verbosity_type) GetProcAddress(library, "gpr_set_log_verbosity");
456
- gpr_log_verbosity_init_import = (gpr_log_verbosity_init_type) GetProcAddress(library, "gpr_log_verbosity_init");
457
- gpr_set_log_function_import = (gpr_set_log_function_type) GetProcAddress(library, "gpr_set_log_function");
458
- gpr_slice_ref_import = (gpr_slice_ref_type) GetProcAddress(library, "gpr_slice_ref");
459
- gpr_slice_unref_import = (gpr_slice_unref_type) GetProcAddress(library, "gpr_slice_unref");
460
- gpr_slice_new_import = (gpr_slice_new_type) GetProcAddress(library, "gpr_slice_new");
461
- gpr_slice_new_with_len_import = (gpr_slice_new_with_len_type) GetProcAddress(library, "gpr_slice_new_with_len");
462
- gpr_slice_malloc_import = (gpr_slice_malloc_type) GetProcAddress(library, "gpr_slice_malloc");
463
- gpr_slice_from_copied_string_import = (gpr_slice_from_copied_string_type) GetProcAddress(library, "gpr_slice_from_copied_string");
464
- gpr_slice_from_copied_buffer_import = (gpr_slice_from_copied_buffer_type) GetProcAddress(library, "gpr_slice_from_copied_buffer");
465
- gpr_slice_from_static_string_import = (gpr_slice_from_static_string_type) GetProcAddress(library, "gpr_slice_from_static_string");
466
- gpr_slice_sub_import = (gpr_slice_sub_type) GetProcAddress(library, "gpr_slice_sub");
467
- gpr_slice_sub_no_ref_import = (gpr_slice_sub_no_ref_type) GetProcAddress(library, "gpr_slice_sub_no_ref");
468
- gpr_slice_split_tail_import = (gpr_slice_split_tail_type) GetProcAddress(library, "gpr_slice_split_tail");
469
- gpr_slice_split_head_import = (gpr_slice_split_head_type) GetProcAddress(library, "gpr_slice_split_head");
470
- gpr_empty_slice_import = (gpr_empty_slice_type) GetProcAddress(library, "gpr_empty_slice");
471
- gpr_slice_cmp_import = (gpr_slice_cmp_type) GetProcAddress(library, "gpr_slice_cmp");
472
- gpr_slice_str_cmp_import = (gpr_slice_str_cmp_type) GetProcAddress(library, "gpr_slice_str_cmp");
473
- gpr_slice_buffer_init_import = (gpr_slice_buffer_init_type) GetProcAddress(library, "gpr_slice_buffer_init");
474
- gpr_slice_buffer_destroy_import = (gpr_slice_buffer_destroy_type) GetProcAddress(library, "gpr_slice_buffer_destroy");
475
- gpr_slice_buffer_add_import = (gpr_slice_buffer_add_type) GetProcAddress(library, "gpr_slice_buffer_add");
476
- gpr_slice_buffer_add_indexed_import = (gpr_slice_buffer_add_indexed_type) GetProcAddress(library, "gpr_slice_buffer_add_indexed");
477
- gpr_slice_buffer_addn_import = (gpr_slice_buffer_addn_type) GetProcAddress(library, "gpr_slice_buffer_addn");
478
- gpr_slice_buffer_tiny_add_import = (gpr_slice_buffer_tiny_add_type) GetProcAddress(library, "gpr_slice_buffer_tiny_add");
479
- gpr_slice_buffer_pop_import = (gpr_slice_buffer_pop_type) GetProcAddress(library, "gpr_slice_buffer_pop");
480
- gpr_slice_buffer_reset_and_unref_import = (gpr_slice_buffer_reset_and_unref_type) GetProcAddress(library, "gpr_slice_buffer_reset_and_unref");
481
- gpr_slice_buffer_swap_import = (gpr_slice_buffer_swap_type) GetProcAddress(library, "gpr_slice_buffer_swap");
482
- gpr_slice_buffer_move_into_import = (gpr_slice_buffer_move_into_type) GetProcAddress(library, "gpr_slice_buffer_move_into");
483
- gpr_slice_buffer_trim_end_import = (gpr_slice_buffer_trim_end_type) GetProcAddress(library, "gpr_slice_buffer_trim_end");
484
- gpr_slice_buffer_move_first_import = (gpr_slice_buffer_move_first_type) GetProcAddress(library, "gpr_slice_buffer_move_first");
485
- gpr_slice_buffer_take_first_import = (gpr_slice_buffer_take_first_type) GetProcAddress(library, "gpr_slice_buffer_take_first");
486
- gpr_mu_init_import = (gpr_mu_init_type) GetProcAddress(library, "gpr_mu_init");
487
- gpr_mu_destroy_import = (gpr_mu_destroy_type) GetProcAddress(library, "gpr_mu_destroy");
488
- gpr_mu_lock_import = (gpr_mu_lock_type) GetProcAddress(library, "gpr_mu_lock");
489
- gpr_mu_unlock_import = (gpr_mu_unlock_type) GetProcAddress(library, "gpr_mu_unlock");
490
- gpr_mu_trylock_import = (gpr_mu_trylock_type) GetProcAddress(library, "gpr_mu_trylock");
491
- gpr_cv_init_import = (gpr_cv_init_type) GetProcAddress(library, "gpr_cv_init");
492
- gpr_cv_destroy_import = (gpr_cv_destroy_type) GetProcAddress(library, "gpr_cv_destroy");
493
- gpr_cv_wait_import = (gpr_cv_wait_type) GetProcAddress(library, "gpr_cv_wait");
494
- gpr_cv_signal_import = (gpr_cv_signal_type) GetProcAddress(library, "gpr_cv_signal");
495
- gpr_cv_broadcast_import = (gpr_cv_broadcast_type) GetProcAddress(library, "gpr_cv_broadcast");
496
- gpr_once_init_import = (gpr_once_init_type) GetProcAddress(library, "gpr_once_init");
497
- gpr_event_init_import = (gpr_event_init_type) GetProcAddress(library, "gpr_event_init");
498
- gpr_event_set_import = (gpr_event_set_type) GetProcAddress(library, "gpr_event_set");
499
- gpr_event_get_import = (gpr_event_get_type) GetProcAddress(library, "gpr_event_get");
500
- gpr_event_wait_import = (gpr_event_wait_type) GetProcAddress(library, "gpr_event_wait");
501
- gpr_ref_init_import = (gpr_ref_init_type) GetProcAddress(library, "gpr_ref_init");
502
- gpr_ref_import = (gpr_ref_type) GetProcAddress(library, "gpr_ref");
503
- gpr_ref_non_zero_import = (gpr_ref_non_zero_type) GetProcAddress(library, "gpr_ref_non_zero");
504
- gpr_refn_import = (gpr_refn_type) GetProcAddress(library, "gpr_refn");
505
- gpr_unref_import = (gpr_unref_type) GetProcAddress(library, "gpr_unref");
506
- gpr_stats_init_import = (gpr_stats_init_type) GetProcAddress(library, "gpr_stats_init");
507
- gpr_stats_inc_import = (gpr_stats_inc_type) GetProcAddress(library, "gpr_stats_inc");
508
- gpr_stats_read_import = (gpr_stats_read_type) GetProcAddress(library, "gpr_stats_read");
509
- gpr_time_0_import = (gpr_time_0_type) GetProcAddress(library, "gpr_time_0");
510
- gpr_inf_future_import = (gpr_inf_future_type) GetProcAddress(library, "gpr_inf_future");
511
- gpr_inf_past_import = (gpr_inf_past_type) GetProcAddress(library, "gpr_inf_past");
512
- gpr_time_init_import = (gpr_time_init_type) GetProcAddress(library, "gpr_time_init");
513
- gpr_now_import = (gpr_now_type) GetProcAddress(library, "gpr_now");
514
- gpr_convert_clock_type_import = (gpr_convert_clock_type_type) GetProcAddress(library, "gpr_convert_clock_type");
515
- gpr_time_cmp_import = (gpr_time_cmp_type) GetProcAddress(library, "gpr_time_cmp");
516
- gpr_time_max_import = (gpr_time_max_type) GetProcAddress(library, "gpr_time_max");
517
- gpr_time_min_import = (gpr_time_min_type) GetProcAddress(library, "gpr_time_min");
518
- gpr_time_add_import = (gpr_time_add_type) GetProcAddress(library, "gpr_time_add");
519
- gpr_time_sub_import = (gpr_time_sub_type) GetProcAddress(library, "gpr_time_sub");
520
- gpr_time_from_micros_import = (gpr_time_from_micros_type) GetProcAddress(library, "gpr_time_from_micros");
521
- gpr_time_from_nanos_import = (gpr_time_from_nanos_type) GetProcAddress(library, "gpr_time_from_nanos");
522
- gpr_time_from_millis_import = (gpr_time_from_millis_type) GetProcAddress(library, "gpr_time_from_millis");
523
- gpr_time_from_seconds_import = (gpr_time_from_seconds_type) GetProcAddress(library, "gpr_time_from_seconds");
524
- gpr_time_from_minutes_import = (gpr_time_from_minutes_type) GetProcAddress(library, "gpr_time_from_minutes");
525
- gpr_time_from_hours_import = (gpr_time_from_hours_type) GetProcAddress(library, "gpr_time_from_hours");
526
- gpr_time_to_millis_import = (gpr_time_to_millis_type) GetProcAddress(library, "gpr_time_to_millis");
527
- gpr_time_similar_import = (gpr_time_similar_type) GetProcAddress(library, "gpr_time_similar");
528
- gpr_sleep_until_import = (gpr_sleep_until_type) GetProcAddress(library, "gpr_sleep_until");
529
- gpr_timespec_to_micros_import = (gpr_timespec_to_micros_type) GetProcAddress(library, "gpr_timespec_to_micros");
530
489
  gpr_avl_create_import = (gpr_avl_create_type) GetProcAddress(library, "gpr_avl_create");
531
490
  gpr_avl_ref_import = (gpr_avl_ref_type) GetProcAddress(library, "gpr_avl_ref");
532
491
  gpr_avl_unref_import = (gpr_avl_unref_type) GetProcAddress(library, "gpr_avl_unref");
@@ -563,6 +522,11 @@ void grpc_rb_load_imports(HMODULE library) {
563
522
  gpr_histogram_merge_contents_import = (gpr_histogram_merge_contents_type) GetProcAddress(library, "gpr_histogram_merge_contents");
564
523
  gpr_join_host_port_import = (gpr_join_host_port_type) GetProcAddress(library, "gpr_join_host_port");
565
524
  gpr_split_host_port_import = (gpr_split_host_port_type) GetProcAddress(library, "gpr_split_host_port");
525
+ gpr_log_import = (gpr_log_type) GetProcAddress(library, "gpr_log");
526
+ gpr_log_message_import = (gpr_log_message_type) GetProcAddress(library, "gpr_log_message");
527
+ gpr_set_log_verbosity_import = (gpr_set_log_verbosity_type) GetProcAddress(library, "gpr_set_log_verbosity");
528
+ gpr_log_verbosity_init_import = (gpr_log_verbosity_init_type) GetProcAddress(library, "gpr_log_verbosity_init");
529
+ gpr_set_log_function_import = (gpr_set_log_function_type) GetProcAddress(library, "gpr_set_log_function");
566
530
  gpr_format_message_import = (gpr_format_message_type) GetProcAddress(library, "gpr_format_message");
567
531
  gpr_strdup_import = (gpr_strdup_type) GetProcAddress(library, "gpr_strdup");
568
532
  gpr_asprintf_import = (gpr_asprintf_type) GetProcAddress(library, "gpr_asprintf");
@@ -571,6 +535,29 @@ void grpc_rb_load_imports(HMODULE library) {
571
535
  gpr_subprocess_destroy_import = (gpr_subprocess_destroy_type) GetProcAddress(library, "gpr_subprocess_destroy");
572
536
  gpr_subprocess_join_import = (gpr_subprocess_join_type) GetProcAddress(library, "gpr_subprocess_join");
573
537
  gpr_subprocess_interrupt_import = (gpr_subprocess_interrupt_type) GetProcAddress(library, "gpr_subprocess_interrupt");
538
+ gpr_mu_init_import = (gpr_mu_init_type) GetProcAddress(library, "gpr_mu_init");
539
+ gpr_mu_destroy_import = (gpr_mu_destroy_type) GetProcAddress(library, "gpr_mu_destroy");
540
+ gpr_mu_lock_import = (gpr_mu_lock_type) GetProcAddress(library, "gpr_mu_lock");
541
+ gpr_mu_unlock_import = (gpr_mu_unlock_type) GetProcAddress(library, "gpr_mu_unlock");
542
+ gpr_mu_trylock_import = (gpr_mu_trylock_type) GetProcAddress(library, "gpr_mu_trylock");
543
+ gpr_cv_init_import = (gpr_cv_init_type) GetProcAddress(library, "gpr_cv_init");
544
+ gpr_cv_destroy_import = (gpr_cv_destroy_type) GetProcAddress(library, "gpr_cv_destroy");
545
+ gpr_cv_wait_import = (gpr_cv_wait_type) GetProcAddress(library, "gpr_cv_wait");
546
+ gpr_cv_signal_import = (gpr_cv_signal_type) GetProcAddress(library, "gpr_cv_signal");
547
+ gpr_cv_broadcast_import = (gpr_cv_broadcast_type) GetProcAddress(library, "gpr_cv_broadcast");
548
+ gpr_once_init_import = (gpr_once_init_type) GetProcAddress(library, "gpr_once_init");
549
+ gpr_event_init_import = (gpr_event_init_type) GetProcAddress(library, "gpr_event_init");
550
+ gpr_event_set_import = (gpr_event_set_type) GetProcAddress(library, "gpr_event_set");
551
+ gpr_event_get_import = (gpr_event_get_type) GetProcAddress(library, "gpr_event_get");
552
+ gpr_event_wait_import = (gpr_event_wait_type) GetProcAddress(library, "gpr_event_wait");
553
+ gpr_ref_init_import = (gpr_ref_init_type) GetProcAddress(library, "gpr_ref_init");
554
+ gpr_ref_import = (gpr_ref_type) GetProcAddress(library, "gpr_ref");
555
+ gpr_ref_non_zero_import = (gpr_ref_non_zero_type) GetProcAddress(library, "gpr_ref_non_zero");
556
+ gpr_refn_import = (gpr_refn_type) GetProcAddress(library, "gpr_refn");
557
+ gpr_unref_import = (gpr_unref_type) GetProcAddress(library, "gpr_unref");
558
+ gpr_stats_init_import = (gpr_stats_init_type) GetProcAddress(library, "gpr_stats_init");
559
+ gpr_stats_inc_import = (gpr_stats_inc_type) GetProcAddress(library, "gpr_stats_inc");
560
+ gpr_stats_read_import = (gpr_stats_read_type) GetProcAddress(library, "gpr_stats_read");
574
561
  gpr_thd_new_import = (gpr_thd_new_type) GetProcAddress(library, "gpr_thd_new");
575
562
  gpr_thd_options_default_import = (gpr_thd_options_default_type) GetProcAddress(library, "gpr_thd_options_default");
576
563
  gpr_thd_options_set_detached_import = (gpr_thd_options_set_detached_type) GetProcAddress(library, "gpr_thd_options_set_detached");
@@ -579,6 +566,27 @@ void grpc_rb_load_imports(HMODULE library) {
579
566
  gpr_thd_options_is_joinable_import = (gpr_thd_options_is_joinable_type) GetProcAddress(library, "gpr_thd_options_is_joinable");
580
567
  gpr_thd_currentid_import = (gpr_thd_currentid_type) GetProcAddress(library, "gpr_thd_currentid");
581
568
  gpr_thd_join_import = (gpr_thd_join_type) GetProcAddress(library, "gpr_thd_join");
569
+ gpr_time_0_import = (gpr_time_0_type) GetProcAddress(library, "gpr_time_0");
570
+ gpr_inf_future_import = (gpr_inf_future_type) GetProcAddress(library, "gpr_inf_future");
571
+ gpr_inf_past_import = (gpr_inf_past_type) GetProcAddress(library, "gpr_inf_past");
572
+ gpr_time_init_import = (gpr_time_init_type) GetProcAddress(library, "gpr_time_init");
573
+ gpr_now_import = (gpr_now_type) GetProcAddress(library, "gpr_now");
574
+ gpr_convert_clock_type_import = (gpr_convert_clock_type_type) GetProcAddress(library, "gpr_convert_clock_type");
575
+ gpr_time_cmp_import = (gpr_time_cmp_type) GetProcAddress(library, "gpr_time_cmp");
576
+ gpr_time_max_import = (gpr_time_max_type) GetProcAddress(library, "gpr_time_max");
577
+ gpr_time_min_import = (gpr_time_min_type) GetProcAddress(library, "gpr_time_min");
578
+ gpr_time_add_import = (gpr_time_add_type) GetProcAddress(library, "gpr_time_add");
579
+ gpr_time_sub_import = (gpr_time_sub_type) GetProcAddress(library, "gpr_time_sub");
580
+ gpr_time_from_micros_import = (gpr_time_from_micros_type) GetProcAddress(library, "gpr_time_from_micros");
581
+ gpr_time_from_nanos_import = (gpr_time_from_nanos_type) GetProcAddress(library, "gpr_time_from_nanos");
582
+ gpr_time_from_millis_import = (gpr_time_from_millis_type) GetProcAddress(library, "gpr_time_from_millis");
583
+ gpr_time_from_seconds_import = (gpr_time_from_seconds_type) GetProcAddress(library, "gpr_time_from_seconds");
584
+ gpr_time_from_minutes_import = (gpr_time_from_minutes_type) GetProcAddress(library, "gpr_time_from_minutes");
585
+ gpr_time_from_hours_import = (gpr_time_from_hours_type) GetProcAddress(library, "gpr_time_from_hours");
586
+ gpr_time_to_millis_import = (gpr_time_to_millis_type) GetProcAddress(library, "gpr_time_to_millis");
587
+ gpr_time_similar_import = (gpr_time_similar_type) GetProcAddress(library, "gpr_time_similar");
588
+ gpr_sleep_until_import = (gpr_sleep_until_type) GetProcAddress(library, "gpr_sleep_until");
589
+ gpr_timespec_to_micros_import = (gpr_timespec_to_micros_type) GetProcAddress(library, "gpr_timespec_to_micros");
582
590
  }
583
591
 
584
592
  #endif /* GPR_WINDOWS */