blob: 8afe1e3d36b9b95e1500f91e811a251dc79ec2ed [file] [log] [blame]
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +01001/*
2 *
3 * Copyright 2016, 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#include <grpc/support/port_platform.h>
35
Yuchen Zeng12dfdc32016-04-26 22:05:41 -070036#ifdef GPR_WINDOWS
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +010037
Nicolas "Pixel" Nobleb8e9e9c2016-01-30 18:35:13 +010038#include "rb_grpc_imports.generated.h"
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +010039
David Garcia Quintas3b31fdf2016-07-27 18:17:12 -070040grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
41grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import;
42grpc_byte_buffer_copy_type grpc_byte_buffer_copy_import;
43grpc_byte_buffer_length_type grpc_byte_buffer_length_import;
44grpc_byte_buffer_destroy_type grpc_byte_buffer_destroy_import;
45grpc_byte_buffer_reader_init_type grpc_byte_buffer_reader_init_import;
46grpc_byte_buffer_reader_destroy_type grpc_byte_buffer_reader_destroy_import;
47grpc_byte_buffer_reader_next_type grpc_byte_buffer_reader_next_import;
48grpc_byte_buffer_reader_readall_type grpc_byte_buffer_reader_readall_import;
49grpc_raw_byte_buffer_from_reader_type grpc_raw_byte_buffer_from_reader_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +010050census_initialize_type census_initialize_import;
51census_shutdown_type census_shutdown_import;
52census_supported_type census_supported_import;
53census_enabled_type census_enabled_import;
Alistair Veitch6f2b8992016-02-03 09:02:46 -080054census_context_create_type census_context_create_import;
55census_context_destroy_type census_context_destroy_import;
56census_context_get_status_type census_context_get_status_import;
57census_context_initialize_iterator_type census_context_initialize_iterator_import;
58census_context_next_tag_type census_context_next_tag_import;
59census_context_get_tag_type census_context_get_tag_import;
60census_context_encode_type census_context_encode_import;
61census_context_decode_type census_context_decode_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +010062census_trace_mask_type census_trace_mask_import;
63census_set_trace_mask_type census_set_trace_mask_import;
64census_start_rpc_op_timestamp_type census_start_rpc_op_timestamp_import;
65census_start_client_rpc_op_type census_start_client_rpc_op_import;
66census_set_rpc_client_peer_type census_set_rpc_client_peer_import;
67census_start_server_rpc_op_type census_start_server_rpc_op_import;
68census_start_op_type census_start_op_import;
69census_end_op_type census_end_op_import;
70census_trace_print_type census_trace_print_import;
71census_trace_scan_start_type census_trace_scan_start_import;
72census_get_trace_record_type census_get_trace_record_import;
73census_trace_scan_end_type census_trace_scan_end_import;
Alistair Veitch4aaba752016-06-02 17:11:46 -070074census_define_resource_type census_define_resource_import;
75census_delete_resource_type census_delete_resource_import;
76census_resource_id_type census_resource_id_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +010077census_record_values_type census_record_values_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +010078grpc_compression_algorithm_parse_type grpc_compression_algorithm_parse_import;
79grpc_compression_algorithm_name_type grpc_compression_algorithm_name_import;
80grpc_compression_algorithm_for_level_type grpc_compression_algorithm_for_level_import;
81grpc_compression_options_init_type grpc_compression_options_init_import;
82grpc_compression_options_enable_algorithm_type grpc_compression_options_enable_algorithm_import;
83grpc_compression_options_disable_algorithm_type grpc_compression_options_disable_algorithm_import;
84grpc_compression_options_is_algorithm_enabled_type grpc_compression_options_is_algorithm_enabled_import;
85grpc_metadata_array_init_type grpc_metadata_array_init_import;
86grpc_metadata_array_destroy_type grpc_metadata_array_destroy_import;
87grpc_call_details_init_type grpc_call_details_init_import;
88grpc_call_details_destroy_type grpc_call_details_destroy_import;
89grpc_register_plugin_type grpc_register_plugin_import;
90grpc_init_type grpc_init_import;
91grpc_shutdown_type grpc_shutdown_import;
92grpc_version_string_type grpc_version_string_import;
Craig Tillerd9f90762016-08-29 16:47:22 -070093grpc_g_stands_for_type grpc_g_stands_for_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +010094grpc_completion_queue_create_type grpc_completion_queue_create_import;
95grpc_completion_queue_next_type grpc_completion_queue_next_import;
96grpc_completion_queue_pluck_type grpc_completion_queue_pluck_import;
97grpc_completion_queue_shutdown_type grpc_completion_queue_shutdown_import;
98grpc_completion_queue_destroy_type grpc_completion_queue_destroy_import;
99grpc_alarm_create_type grpc_alarm_create_import;
100grpc_alarm_cancel_type grpc_alarm_cancel_import;
101grpc_alarm_destroy_type grpc_alarm_destroy_import;
102grpc_channel_check_connectivity_state_type grpc_channel_check_connectivity_state_import;
103grpc_channel_watch_connectivity_state_type grpc_channel_watch_connectivity_state_import;
104grpc_channel_create_call_type grpc_channel_create_call_import;
105grpc_channel_ping_type grpc_channel_ping_import;
106grpc_channel_register_call_type grpc_channel_register_call_import;
107grpc_channel_create_registered_call_type grpc_channel_create_registered_call_import;
Vijay Paic0e67012017-03-17 20:00:55 -0700108grpc_call_arena_alloc_type grpc_call_arena_alloc_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100109grpc_call_start_batch_type grpc_call_start_batch_import;
110grpc_call_get_peer_type grpc_call_get_peer_import;
David Garcia Quintasf31f0962017-02-10 14:53:58 -0800111grpc_call_set_load_reporting_cost_context_type grpc_call_set_load_reporting_cost_context_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100112grpc_census_call_set_context_type grpc_census_call_set_context_import;
113grpc_census_call_get_context_type grpc_census_call_get_context_import;
114grpc_channel_get_target_type grpc_channel_get_target_import;
Mark D. Roth8e2d8d92016-11-04 12:55:07 -0700115grpc_channel_get_info_type grpc_channel_get_info_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100116grpc_insecure_channel_create_type grpc_insecure_channel_create_import;
117grpc_lame_client_channel_create_type grpc_lame_client_channel_create_import;
118grpc_channel_destroy_type grpc_channel_destroy_import;
119grpc_call_cancel_type grpc_call_cancel_import;
120grpc_call_cancel_with_status_type grpc_call_cancel_with_status_import;
121grpc_call_destroy_type grpc_call_destroy_import;
122grpc_server_request_call_type grpc_server_request_call_import;
123grpc_server_register_method_type grpc_server_register_method_import;
124grpc_server_request_registered_call_type grpc_server_request_registered_call_import;
125grpc_server_create_type grpc_server_create_import;
126grpc_server_register_completion_queue_type grpc_server_register_completion_queue_import;
Sree Kuchibhotla01907122016-04-21 15:09:13 -0700127grpc_server_register_non_listening_completion_queue_type grpc_server_register_non_listening_completion_queue_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100128grpc_server_add_insecure_http2_port_type grpc_server_add_insecure_http2_port_import;
129grpc_server_start_type grpc_server_start_import;
130grpc_server_shutdown_and_notify_type grpc_server_shutdown_and_notify_import;
131grpc_server_cancel_all_calls_type grpc_server_cancel_all_calls_import;
132grpc_server_destroy_type grpc_server_destroy_import;
133grpc_tracer_set_enabled_type grpc_tracer_set_enabled_import;
134grpc_header_key_is_legal_type grpc_header_key_is_legal_import;
135grpc_header_nonbin_value_is_legal_type grpc_header_nonbin_value_is_legal_import;
136grpc_is_binary_header_type grpc_is_binary_header_import;
Yuchen Zeng2e7d9572016-04-15 17:29:57 -0700137grpc_call_error_to_string_type grpc_call_error_to_string_import;
Craig Tiller20afa3d2016-10-17 14:52:14 -0700138grpc_resource_quota_create_type grpc_resource_quota_create_import;
139grpc_resource_quota_ref_type grpc_resource_quota_ref_import;
140grpc_resource_quota_unref_type grpc_resource_quota_unref_import;
141grpc_resource_quota_resize_type grpc_resource_quota_resize_import;
142grpc_resource_quota_arg_vtable_type grpc_resource_quota_arg_vtable_import;
Adam Michalik321b1fb2016-05-16 15:42:36 -0700143grpc_insecure_channel_create_from_fd_type grpc_insecure_channel_create_from_fd_import;
Adam Michalikbf10c822016-05-20 16:13:32 -0700144grpc_server_add_insecure_channel_from_fd_type grpc_server_add_insecure_channel_from_fd_import;
Sree Kuchibhotla492fd962016-06-10 09:03:34 -0700145grpc_use_signal_type grpc_use_signal_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100146grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import;
147grpc_auth_context_property_iterator_type grpc_auth_context_property_iterator_import;
148grpc_auth_context_peer_identity_type grpc_auth_context_peer_identity_import;
149grpc_auth_context_find_properties_by_name_type grpc_auth_context_find_properties_by_name_import;
150grpc_auth_context_peer_identity_property_name_type grpc_auth_context_peer_identity_property_name_import;
151grpc_auth_context_peer_is_authenticated_type grpc_auth_context_peer_is_authenticated_import;
152grpc_call_auth_context_type grpc_call_auth_context_import;
153grpc_auth_context_release_type grpc_auth_context_release_import;
154grpc_auth_context_add_property_type grpc_auth_context_add_property_import;
155grpc_auth_context_add_cstring_property_type grpc_auth_context_add_cstring_property_import;
156grpc_auth_context_set_peer_identity_property_name_type grpc_auth_context_set_peer_identity_property_name_import;
157grpc_channel_credentials_release_type grpc_channel_credentials_release_import;
158grpc_google_default_credentials_create_type grpc_google_default_credentials_create_import;
Nicolas "Pixel" Noble63976602016-02-17 23:43:55 +0100159grpc_set_ssl_roots_override_callback_type grpc_set_ssl_roots_override_callback_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100160grpc_ssl_credentials_create_type grpc_ssl_credentials_create_import;
161grpc_call_credentials_release_type grpc_call_credentials_release_import;
162grpc_composite_channel_credentials_create_type grpc_composite_channel_credentials_create_import;
163grpc_composite_call_credentials_create_type grpc_composite_call_credentials_create_import;
164grpc_google_compute_engine_credentials_create_type grpc_google_compute_engine_credentials_create_import;
Nicolas "Pixel" Nobled2f20ef2016-01-31 07:52:59 +0100165grpc_max_auth_token_lifetime_type grpc_max_auth_token_lifetime_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100166grpc_service_account_jwt_access_credentials_create_type grpc_service_account_jwt_access_credentials_create_import;
167grpc_google_refresh_token_credentials_create_type grpc_google_refresh_token_credentials_create_import;
168grpc_access_token_credentials_create_type grpc_access_token_credentials_create_import;
169grpc_google_iam_credentials_create_type grpc_google_iam_credentials_create_import;
170grpc_metadata_credentials_create_from_plugin_type grpc_metadata_credentials_create_from_plugin_import;
171grpc_secure_channel_create_type grpc_secure_channel_create_import;
172grpc_server_credentials_release_type grpc_server_credentials_release_import;
173grpc_ssl_server_credentials_create_type grpc_ssl_server_credentials_create_import;
Deepak Lukosedba4c5f2016-03-25 12:54:25 -0700174grpc_ssl_server_credentials_create_ex_type grpc_ssl_server_credentials_create_ex_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100175grpc_server_add_secure_http2_port_type grpc_server_add_secure_http2_port_import;
176grpc_call_set_credentials_type grpc_call_set_credentials_import;
177grpc_server_credentials_set_auth_metadata_processor_type grpc_server_credentials_set_auth_metadata_processor_import;
Craig Tillerc3350542016-10-26 16:19:01 -0700178grpc_slice_ref_type grpc_slice_ref_import;
179grpc_slice_unref_type grpc_slice_unref_import;
180grpc_slice_new_type grpc_slice_new_import;
181grpc_slice_new_with_user_data_type grpc_slice_new_with_user_data_import;
182grpc_slice_new_with_len_type grpc_slice_new_with_len_import;
183grpc_slice_malloc_type grpc_slice_malloc_import;
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800184grpc_slice_intern_type grpc_slice_intern_import;
Craig Tillerc3350542016-10-26 16:19:01 -0700185grpc_slice_from_copied_string_type grpc_slice_from_copied_string_import;
186grpc_slice_from_copied_buffer_type grpc_slice_from_copied_buffer_import;
187grpc_slice_from_static_string_type grpc_slice_from_static_string_import;
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800188grpc_slice_from_static_buffer_type grpc_slice_from_static_buffer_import;
Craig Tillerc3350542016-10-26 16:19:01 -0700189grpc_slice_sub_type grpc_slice_sub_import;
190grpc_slice_sub_no_ref_type grpc_slice_sub_no_ref_import;
191grpc_slice_split_tail_type grpc_slice_split_tail_import;
192grpc_slice_split_head_type grpc_slice_split_head_import;
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800193grpc_empty_slice_type grpc_empty_slice_import;
194grpc_slice_default_hash_impl_type grpc_slice_default_hash_impl_import;
195grpc_slice_default_eq_impl_type grpc_slice_default_eq_impl_import;
196grpc_slice_eq_type grpc_slice_eq_import;
Craig Tillerc3350542016-10-26 16:19:01 -0700197grpc_slice_cmp_type grpc_slice_cmp_import;
198grpc_slice_str_cmp_type grpc_slice_str_cmp_import;
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800199grpc_slice_buf_cmp_type grpc_slice_buf_cmp_import;
200grpc_slice_buf_start_eq_type grpc_slice_buf_start_eq_import;
201grpc_slice_rchr_type grpc_slice_rchr_import;
202grpc_slice_chr_type grpc_slice_chr_import;
203grpc_slice_slice_type grpc_slice_slice_import;
204grpc_slice_hash_type grpc_slice_hash_import;
Craig Tillerc5866662016-11-16 15:25:00 -0800205grpc_slice_is_equivalent_type grpc_slice_is_equivalent_import;
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800206grpc_slice_dup_type grpc_slice_dup_import;
207grpc_slice_to_c_string_type grpc_slice_to_c_string_import;
Craig Tillerc3350542016-10-26 16:19:01 -0700208grpc_slice_buffer_init_type grpc_slice_buffer_init_import;
209grpc_slice_buffer_destroy_type grpc_slice_buffer_destroy_import;
210grpc_slice_buffer_add_type grpc_slice_buffer_add_import;
211grpc_slice_buffer_add_indexed_type grpc_slice_buffer_add_indexed_import;
212grpc_slice_buffer_addn_type grpc_slice_buffer_addn_import;
213grpc_slice_buffer_tiny_add_type grpc_slice_buffer_tiny_add_import;
214grpc_slice_buffer_pop_type grpc_slice_buffer_pop_import;
215grpc_slice_buffer_reset_and_unref_type grpc_slice_buffer_reset_and_unref_import;
216grpc_slice_buffer_swap_type grpc_slice_buffer_swap_import;
217grpc_slice_buffer_move_into_type grpc_slice_buffer_move_into_import;
218grpc_slice_buffer_trim_end_type grpc_slice_buffer_trim_end_import;
219grpc_slice_buffer_move_first_type grpc_slice_buffer_move_first_import;
Craig Tiller0cf6a712017-01-20 14:07:05 -0800220grpc_slice_buffer_move_first_into_buffer_type grpc_slice_buffer_move_first_into_buffer_import;
Craig Tillerc3350542016-10-26 16:19:01 -0700221grpc_slice_buffer_take_first_type grpc_slice_buffer_take_first_import;
Craig Tiller0cf6a712017-01-20 14:07:05 -0800222grpc_slice_buffer_undo_take_first_type grpc_slice_buffer_undo_take_first_import;
David Garcia Quintas3b31fdf2016-07-27 18:17:12 -0700223gpr_malloc_type gpr_malloc_import;
Craig Tillerff714492017-02-17 09:02:18 -0800224gpr_zalloc_type gpr_zalloc_import;
David Garcia Quintas3b31fdf2016-07-27 18:17:12 -0700225gpr_free_type gpr_free_import;
226gpr_realloc_type gpr_realloc_import;
227gpr_malloc_aligned_type gpr_malloc_aligned_import;
228gpr_free_aligned_type gpr_free_aligned_import;
229gpr_set_allocation_functions_type gpr_set_allocation_functions_import;
230gpr_get_allocation_functions_type gpr_get_allocation_functions_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100231gpr_avl_create_type gpr_avl_create_import;
232gpr_avl_ref_type gpr_avl_ref_import;
233gpr_avl_unref_type gpr_avl_unref_import;
234gpr_avl_add_type gpr_avl_add_import;
235gpr_avl_remove_type gpr_avl_remove_import;
236gpr_avl_get_type gpr_avl_get_import;
Craig Tillerd6a5b802016-05-13 20:17:38 -0700237gpr_avl_maybe_get_type gpr_avl_maybe_get_import;
238gpr_avl_is_empty_type gpr_avl_is_empty_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100239gpr_cmdline_create_type gpr_cmdline_create_import;
240gpr_cmdline_add_int_type gpr_cmdline_add_int_import;
241gpr_cmdline_add_flag_type gpr_cmdline_add_flag_import;
242gpr_cmdline_add_string_type gpr_cmdline_add_string_import;
243gpr_cmdline_on_extra_arg_type gpr_cmdline_on_extra_arg_import;
244gpr_cmdline_set_survive_failure_type gpr_cmdline_set_survive_failure_import;
245gpr_cmdline_parse_type gpr_cmdline_parse_import;
246gpr_cmdline_destroy_type gpr_cmdline_destroy_import;
247gpr_cmdline_usage_string_type gpr_cmdline_usage_string_import;
248gpr_cpu_num_cores_type gpr_cpu_num_cores_import;
249gpr_cpu_current_cpu_type gpr_cpu_current_cpu_import;
250gpr_histogram_create_type gpr_histogram_create_import;
251gpr_histogram_destroy_type gpr_histogram_destroy_import;
252gpr_histogram_add_type gpr_histogram_add_import;
253gpr_histogram_merge_type gpr_histogram_merge_import;
254gpr_histogram_percentile_type gpr_histogram_percentile_import;
255gpr_histogram_mean_type gpr_histogram_mean_import;
256gpr_histogram_stddev_type gpr_histogram_stddev_import;
257gpr_histogram_variance_type gpr_histogram_variance_import;
258gpr_histogram_maximum_type gpr_histogram_maximum_import;
259gpr_histogram_minimum_type gpr_histogram_minimum_import;
260gpr_histogram_count_type gpr_histogram_count_import;
261gpr_histogram_sum_type gpr_histogram_sum_import;
262gpr_histogram_sum_of_squares_type gpr_histogram_sum_of_squares_import;
263gpr_histogram_get_contents_type gpr_histogram_get_contents_import;
264gpr_histogram_merge_contents_type gpr_histogram_merge_contents_import;
265gpr_join_host_port_type gpr_join_host_port_import;
266gpr_split_host_port_type gpr_split_host_port_import;
David Garcia Quintasc79b0652016-07-27 21:11:58 -0700267gpr_log_type gpr_log_import;
268gpr_log_message_type gpr_log_message_import;
269gpr_set_log_verbosity_type gpr_set_log_verbosity_import;
270gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
271gpr_set_log_function_type gpr_set_log_function_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100272gpr_format_message_type gpr_format_message_import;
273gpr_strdup_type gpr_strdup_import;
274gpr_asprintf_type gpr_asprintf_import;
275gpr_subprocess_binary_extension_type gpr_subprocess_binary_extension_import;
276gpr_subprocess_create_type gpr_subprocess_create_import;
277gpr_subprocess_destroy_type gpr_subprocess_destroy_import;
278gpr_subprocess_join_type gpr_subprocess_join_import;
279gpr_subprocess_interrupt_type gpr_subprocess_interrupt_import;
David Garcia Quintas2ee99f42016-08-01 19:15:31 -0700280gpr_mu_init_type gpr_mu_init_import;
281gpr_mu_destroy_type gpr_mu_destroy_import;
282gpr_mu_lock_type gpr_mu_lock_import;
283gpr_mu_unlock_type gpr_mu_unlock_import;
284gpr_mu_trylock_type gpr_mu_trylock_import;
285gpr_cv_init_type gpr_cv_init_import;
286gpr_cv_destroy_type gpr_cv_destroy_import;
287gpr_cv_wait_type gpr_cv_wait_import;
288gpr_cv_signal_type gpr_cv_signal_import;
289gpr_cv_broadcast_type gpr_cv_broadcast_import;
290gpr_once_init_type gpr_once_init_import;
291gpr_event_init_type gpr_event_init_import;
292gpr_event_set_type gpr_event_set_import;
293gpr_event_get_type gpr_event_get_import;
294gpr_event_wait_type gpr_event_wait_import;
295gpr_ref_init_type gpr_ref_init_import;
296gpr_ref_type gpr_ref_import;
297gpr_ref_non_zero_type gpr_ref_non_zero_import;
298gpr_refn_type gpr_refn_import;
299gpr_unref_type gpr_unref_import;
ncteisen3da3ce32017-02-17 09:51:25 -0800300gpr_ref_is_unique_type gpr_ref_is_unique_import;
David Garcia Quintas2ee99f42016-08-01 19:15:31 -0700301gpr_stats_init_type gpr_stats_init_import;
302gpr_stats_inc_type gpr_stats_inc_import;
303gpr_stats_read_type gpr_stats_read_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100304gpr_thd_new_type gpr_thd_new_import;
305gpr_thd_options_default_type gpr_thd_options_default_import;
306gpr_thd_options_set_detached_type gpr_thd_options_set_detached_import;
307gpr_thd_options_set_joinable_type gpr_thd_options_set_joinable_import;
308gpr_thd_options_is_detached_type gpr_thd_options_is_detached_import;
309gpr_thd_options_is_joinable_type gpr_thd_options_is_joinable_import;
310gpr_thd_currentid_type gpr_thd_currentid_import;
311gpr_thd_join_type gpr_thd_join_import;
David Garcia Quintas1399e462016-07-27 20:31:55 -0700312gpr_time_0_type gpr_time_0_import;
313gpr_inf_future_type gpr_inf_future_import;
314gpr_inf_past_type gpr_inf_past_import;
315gpr_time_init_type gpr_time_init_import;
316gpr_now_type gpr_now_import;
317gpr_convert_clock_type_type gpr_convert_clock_type_import;
318gpr_time_cmp_type gpr_time_cmp_import;
319gpr_time_max_type gpr_time_max_import;
320gpr_time_min_type gpr_time_min_import;
321gpr_time_add_type gpr_time_add_import;
322gpr_time_sub_type gpr_time_sub_import;
323gpr_time_from_micros_type gpr_time_from_micros_import;
324gpr_time_from_nanos_type gpr_time_from_nanos_import;
325gpr_time_from_millis_type gpr_time_from_millis_import;
326gpr_time_from_seconds_type gpr_time_from_seconds_import;
327gpr_time_from_minutes_type gpr_time_from_minutes_import;
328gpr_time_from_hours_type gpr_time_from_hours_import;
329gpr_time_to_millis_type gpr_time_to_millis_import;
330gpr_time_similar_type gpr_time_similar_import;
331gpr_sleep_until_type gpr_sleep_until_import;
332gpr_timespec_to_micros_type gpr_timespec_to_micros_import;
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100333
334void grpc_rb_load_imports(HMODULE library) {
David Garcia Quintas3b31fdf2016-07-27 18:17:12 -0700335 grpc_raw_byte_buffer_create_import = (grpc_raw_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_byte_buffer_create");
336 grpc_raw_compressed_byte_buffer_create_import = (grpc_raw_compressed_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_compressed_byte_buffer_create");
337 grpc_byte_buffer_copy_import = (grpc_byte_buffer_copy_type) GetProcAddress(library, "grpc_byte_buffer_copy");
338 grpc_byte_buffer_length_import = (grpc_byte_buffer_length_type) GetProcAddress(library, "grpc_byte_buffer_length");
339 grpc_byte_buffer_destroy_import = (grpc_byte_buffer_destroy_type) GetProcAddress(library, "grpc_byte_buffer_destroy");
340 grpc_byte_buffer_reader_init_import = (grpc_byte_buffer_reader_init_type) GetProcAddress(library, "grpc_byte_buffer_reader_init");
341 grpc_byte_buffer_reader_destroy_import = (grpc_byte_buffer_reader_destroy_type) GetProcAddress(library, "grpc_byte_buffer_reader_destroy");
342 grpc_byte_buffer_reader_next_import = (grpc_byte_buffer_reader_next_type) GetProcAddress(library, "grpc_byte_buffer_reader_next");
343 grpc_byte_buffer_reader_readall_import = (grpc_byte_buffer_reader_readall_type) GetProcAddress(library, "grpc_byte_buffer_reader_readall");
344 grpc_raw_byte_buffer_from_reader_import = (grpc_raw_byte_buffer_from_reader_type) GetProcAddress(library, "grpc_raw_byte_buffer_from_reader");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100345 census_initialize_import = (census_initialize_type) GetProcAddress(library, "census_initialize");
346 census_shutdown_import = (census_shutdown_type) GetProcAddress(library, "census_shutdown");
347 census_supported_import = (census_supported_type) GetProcAddress(library, "census_supported");
348 census_enabled_import = (census_enabled_type) GetProcAddress(library, "census_enabled");
Alistair Veitch6f2b8992016-02-03 09:02:46 -0800349 census_context_create_import = (census_context_create_type) GetProcAddress(library, "census_context_create");
350 census_context_destroy_import = (census_context_destroy_type) GetProcAddress(library, "census_context_destroy");
351 census_context_get_status_import = (census_context_get_status_type) GetProcAddress(library, "census_context_get_status");
352 census_context_initialize_iterator_import = (census_context_initialize_iterator_type) GetProcAddress(library, "census_context_initialize_iterator");
353 census_context_next_tag_import = (census_context_next_tag_type) GetProcAddress(library, "census_context_next_tag");
354 census_context_get_tag_import = (census_context_get_tag_type) GetProcAddress(library, "census_context_get_tag");
355 census_context_encode_import = (census_context_encode_type) GetProcAddress(library, "census_context_encode");
356 census_context_decode_import = (census_context_decode_type) GetProcAddress(library, "census_context_decode");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100357 census_trace_mask_import = (census_trace_mask_type) GetProcAddress(library, "census_trace_mask");
358 census_set_trace_mask_import = (census_set_trace_mask_type) GetProcAddress(library, "census_set_trace_mask");
359 census_start_rpc_op_timestamp_import = (census_start_rpc_op_timestamp_type) GetProcAddress(library, "census_start_rpc_op_timestamp");
360 census_start_client_rpc_op_import = (census_start_client_rpc_op_type) GetProcAddress(library, "census_start_client_rpc_op");
361 census_set_rpc_client_peer_import = (census_set_rpc_client_peer_type) GetProcAddress(library, "census_set_rpc_client_peer");
362 census_start_server_rpc_op_import = (census_start_server_rpc_op_type) GetProcAddress(library, "census_start_server_rpc_op");
363 census_start_op_import = (census_start_op_type) GetProcAddress(library, "census_start_op");
364 census_end_op_import = (census_end_op_type) GetProcAddress(library, "census_end_op");
365 census_trace_print_import = (census_trace_print_type) GetProcAddress(library, "census_trace_print");
366 census_trace_scan_start_import = (census_trace_scan_start_type) GetProcAddress(library, "census_trace_scan_start");
367 census_get_trace_record_import = (census_get_trace_record_type) GetProcAddress(library, "census_get_trace_record");
368 census_trace_scan_end_import = (census_trace_scan_end_type) GetProcAddress(library, "census_trace_scan_end");
Alistair Veitch4aaba752016-06-02 17:11:46 -0700369 census_define_resource_import = (census_define_resource_type) GetProcAddress(library, "census_define_resource");
370 census_delete_resource_import = (census_delete_resource_type) GetProcAddress(library, "census_delete_resource");
371 census_resource_id_import = (census_resource_id_type) GetProcAddress(library, "census_resource_id");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100372 census_record_values_import = (census_record_values_type) GetProcAddress(library, "census_record_values");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100373 grpc_compression_algorithm_parse_import = (grpc_compression_algorithm_parse_type) GetProcAddress(library, "grpc_compression_algorithm_parse");
374 grpc_compression_algorithm_name_import = (grpc_compression_algorithm_name_type) GetProcAddress(library, "grpc_compression_algorithm_name");
375 grpc_compression_algorithm_for_level_import = (grpc_compression_algorithm_for_level_type) GetProcAddress(library, "grpc_compression_algorithm_for_level");
376 grpc_compression_options_init_import = (grpc_compression_options_init_type) GetProcAddress(library, "grpc_compression_options_init");
377 grpc_compression_options_enable_algorithm_import = (grpc_compression_options_enable_algorithm_type) GetProcAddress(library, "grpc_compression_options_enable_algorithm");
378 grpc_compression_options_disable_algorithm_import = (grpc_compression_options_disable_algorithm_type) GetProcAddress(library, "grpc_compression_options_disable_algorithm");
379 grpc_compression_options_is_algorithm_enabled_import = (grpc_compression_options_is_algorithm_enabled_type) GetProcAddress(library, "grpc_compression_options_is_algorithm_enabled");
380 grpc_metadata_array_init_import = (grpc_metadata_array_init_type) GetProcAddress(library, "grpc_metadata_array_init");
381 grpc_metadata_array_destroy_import = (grpc_metadata_array_destroy_type) GetProcAddress(library, "grpc_metadata_array_destroy");
382 grpc_call_details_init_import = (grpc_call_details_init_type) GetProcAddress(library, "grpc_call_details_init");
383 grpc_call_details_destroy_import = (grpc_call_details_destroy_type) GetProcAddress(library, "grpc_call_details_destroy");
384 grpc_register_plugin_import = (grpc_register_plugin_type) GetProcAddress(library, "grpc_register_plugin");
385 grpc_init_import = (grpc_init_type) GetProcAddress(library, "grpc_init");
386 grpc_shutdown_import = (grpc_shutdown_type) GetProcAddress(library, "grpc_shutdown");
387 grpc_version_string_import = (grpc_version_string_type) GetProcAddress(library, "grpc_version_string");
Craig Tillerd9f90762016-08-29 16:47:22 -0700388 grpc_g_stands_for_import = (grpc_g_stands_for_type) GetProcAddress(library, "grpc_g_stands_for");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100389 grpc_completion_queue_create_import = (grpc_completion_queue_create_type) GetProcAddress(library, "grpc_completion_queue_create");
390 grpc_completion_queue_next_import = (grpc_completion_queue_next_type) GetProcAddress(library, "grpc_completion_queue_next");
391 grpc_completion_queue_pluck_import = (grpc_completion_queue_pluck_type) GetProcAddress(library, "grpc_completion_queue_pluck");
392 grpc_completion_queue_shutdown_import = (grpc_completion_queue_shutdown_type) GetProcAddress(library, "grpc_completion_queue_shutdown");
393 grpc_completion_queue_destroy_import = (grpc_completion_queue_destroy_type) GetProcAddress(library, "grpc_completion_queue_destroy");
394 grpc_alarm_create_import = (grpc_alarm_create_type) GetProcAddress(library, "grpc_alarm_create");
395 grpc_alarm_cancel_import = (grpc_alarm_cancel_type) GetProcAddress(library, "grpc_alarm_cancel");
396 grpc_alarm_destroy_import = (grpc_alarm_destroy_type) GetProcAddress(library, "grpc_alarm_destroy");
397 grpc_channel_check_connectivity_state_import = (grpc_channel_check_connectivity_state_type) GetProcAddress(library, "grpc_channel_check_connectivity_state");
398 grpc_channel_watch_connectivity_state_import = (grpc_channel_watch_connectivity_state_type) GetProcAddress(library, "grpc_channel_watch_connectivity_state");
399 grpc_channel_create_call_import = (grpc_channel_create_call_type) GetProcAddress(library, "grpc_channel_create_call");
400 grpc_channel_ping_import = (grpc_channel_ping_type) GetProcAddress(library, "grpc_channel_ping");
401 grpc_channel_register_call_import = (grpc_channel_register_call_type) GetProcAddress(library, "grpc_channel_register_call");
402 grpc_channel_create_registered_call_import = (grpc_channel_create_registered_call_type) GetProcAddress(library, "grpc_channel_create_registered_call");
Vijay Paic0e67012017-03-17 20:00:55 -0700403 grpc_call_arena_alloc_import = (grpc_call_arena_alloc_type) GetProcAddress(library, "grpc_call_arena_alloc");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100404 grpc_call_start_batch_import = (grpc_call_start_batch_type) GetProcAddress(library, "grpc_call_start_batch");
405 grpc_call_get_peer_import = (grpc_call_get_peer_type) GetProcAddress(library, "grpc_call_get_peer");
David Garcia Quintasf31f0962017-02-10 14:53:58 -0800406 grpc_call_set_load_reporting_cost_context_import = (grpc_call_set_load_reporting_cost_context_type) GetProcAddress(library, "grpc_call_set_load_reporting_cost_context");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100407 grpc_census_call_set_context_import = (grpc_census_call_set_context_type) GetProcAddress(library, "grpc_census_call_set_context");
408 grpc_census_call_get_context_import = (grpc_census_call_get_context_type) GetProcAddress(library, "grpc_census_call_get_context");
409 grpc_channel_get_target_import = (grpc_channel_get_target_type) GetProcAddress(library, "grpc_channel_get_target");
Mark D. Roth8e2d8d92016-11-04 12:55:07 -0700410 grpc_channel_get_info_import = (grpc_channel_get_info_type) GetProcAddress(library, "grpc_channel_get_info");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100411 grpc_insecure_channel_create_import = (grpc_insecure_channel_create_type) GetProcAddress(library, "grpc_insecure_channel_create");
412 grpc_lame_client_channel_create_import = (grpc_lame_client_channel_create_type) GetProcAddress(library, "grpc_lame_client_channel_create");
413 grpc_channel_destroy_import = (grpc_channel_destroy_type) GetProcAddress(library, "grpc_channel_destroy");
414 grpc_call_cancel_import = (grpc_call_cancel_type) GetProcAddress(library, "grpc_call_cancel");
415 grpc_call_cancel_with_status_import = (grpc_call_cancel_with_status_type) GetProcAddress(library, "grpc_call_cancel_with_status");
416 grpc_call_destroy_import = (grpc_call_destroy_type) GetProcAddress(library, "grpc_call_destroy");
417 grpc_server_request_call_import = (grpc_server_request_call_type) GetProcAddress(library, "grpc_server_request_call");
418 grpc_server_register_method_import = (grpc_server_register_method_type) GetProcAddress(library, "grpc_server_register_method");
419 grpc_server_request_registered_call_import = (grpc_server_request_registered_call_type) GetProcAddress(library, "grpc_server_request_registered_call");
420 grpc_server_create_import = (grpc_server_create_type) GetProcAddress(library, "grpc_server_create");
421 grpc_server_register_completion_queue_import = (grpc_server_register_completion_queue_type) GetProcAddress(library, "grpc_server_register_completion_queue");
Sree Kuchibhotla01907122016-04-21 15:09:13 -0700422 grpc_server_register_non_listening_completion_queue_import = (grpc_server_register_non_listening_completion_queue_type) GetProcAddress(library, "grpc_server_register_non_listening_completion_queue");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100423 grpc_server_add_insecure_http2_port_import = (grpc_server_add_insecure_http2_port_type) GetProcAddress(library, "grpc_server_add_insecure_http2_port");
424 grpc_server_start_import = (grpc_server_start_type) GetProcAddress(library, "grpc_server_start");
425 grpc_server_shutdown_and_notify_import = (grpc_server_shutdown_and_notify_type) GetProcAddress(library, "grpc_server_shutdown_and_notify");
426 grpc_server_cancel_all_calls_import = (grpc_server_cancel_all_calls_type) GetProcAddress(library, "grpc_server_cancel_all_calls");
427 grpc_server_destroy_import = (grpc_server_destroy_type) GetProcAddress(library, "grpc_server_destroy");
428 grpc_tracer_set_enabled_import = (grpc_tracer_set_enabled_type) GetProcAddress(library, "grpc_tracer_set_enabled");
429 grpc_header_key_is_legal_import = (grpc_header_key_is_legal_type) GetProcAddress(library, "grpc_header_key_is_legal");
430 grpc_header_nonbin_value_is_legal_import = (grpc_header_nonbin_value_is_legal_type) GetProcAddress(library, "grpc_header_nonbin_value_is_legal");
431 grpc_is_binary_header_import = (grpc_is_binary_header_type) GetProcAddress(library, "grpc_is_binary_header");
Yuchen Zeng2e7d9572016-04-15 17:29:57 -0700432 grpc_call_error_to_string_import = (grpc_call_error_to_string_type) GetProcAddress(library, "grpc_call_error_to_string");
Craig Tiller20afa3d2016-10-17 14:52:14 -0700433 grpc_resource_quota_create_import = (grpc_resource_quota_create_type) GetProcAddress(library, "grpc_resource_quota_create");
434 grpc_resource_quota_ref_import = (grpc_resource_quota_ref_type) GetProcAddress(library, "grpc_resource_quota_ref");
435 grpc_resource_quota_unref_import = (grpc_resource_quota_unref_type) GetProcAddress(library, "grpc_resource_quota_unref");
436 grpc_resource_quota_resize_import = (grpc_resource_quota_resize_type) GetProcAddress(library, "grpc_resource_quota_resize");
437 grpc_resource_quota_arg_vtable_import = (grpc_resource_quota_arg_vtable_type) GetProcAddress(library, "grpc_resource_quota_arg_vtable");
Adam Michalik321b1fb2016-05-16 15:42:36 -0700438 grpc_insecure_channel_create_from_fd_import = (grpc_insecure_channel_create_from_fd_type) GetProcAddress(library, "grpc_insecure_channel_create_from_fd");
Adam Michalikbf10c822016-05-20 16:13:32 -0700439 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");
Sree Kuchibhotla492fd962016-06-10 09:03:34 -0700440 grpc_use_signal_import = (grpc_use_signal_type) GetProcAddress(library, "grpc_use_signal");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100441 grpc_auth_property_iterator_next_import = (grpc_auth_property_iterator_next_type) GetProcAddress(library, "grpc_auth_property_iterator_next");
442 grpc_auth_context_property_iterator_import = (grpc_auth_context_property_iterator_type) GetProcAddress(library, "grpc_auth_context_property_iterator");
443 grpc_auth_context_peer_identity_import = (grpc_auth_context_peer_identity_type) GetProcAddress(library, "grpc_auth_context_peer_identity");
444 grpc_auth_context_find_properties_by_name_import = (grpc_auth_context_find_properties_by_name_type) GetProcAddress(library, "grpc_auth_context_find_properties_by_name");
445 grpc_auth_context_peer_identity_property_name_import = (grpc_auth_context_peer_identity_property_name_type) GetProcAddress(library, "grpc_auth_context_peer_identity_property_name");
446 grpc_auth_context_peer_is_authenticated_import = (grpc_auth_context_peer_is_authenticated_type) GetProcAddress(library, "grpc_auth_context_peer_is_authenticated");
447 grpc_call_auth_context_import = (grpc_call_auth_context_type) GetProcAddress(library, "grpc_call_auth_context");
448 grpc_auth_context_release_import = (grpc_auth_context_release_type) GetProcAddress(library, "grpc_auth_context_release");
449 grpc_auth_context_add_property_import = (grpc_auth_context_add_property_type) GetProcAddress(library, "grpc_auth_context_add_property");
450 grpc_auth_context_add_cstring_property_import = (grpc_auth_context_add_cstring_property_type) GetProcAddress(library, "grpc_auth_context_add_cstring_property");
451 grpc_auth_context_set_peer_identity_property_name_import = (grpc_auth_context_set_peer_identity_property_name_type) GetProcAddress(library, "grpc_auth_context_set_peer_identity_property_name");
452 grpc_channel_credentials_release_import = (grpc_channel_credentials_release_type) GetProcAddress(library, "grpc_channel_credentials_release");
453 grpc_google_default_credentials_create_import = (grpc_google_default_credentials_create_type) GetProcAddress(library, "grpc_google_default_credentials_create");
Nicolas "Pixel" Noble63976602016-02-17 23:43:55 +0100454 grpc_set_ssl_roots_override_callback_import = (grpc_set_ssl_roots_override_callback_type) GetProcAddress(library, "grpc_set_ssl_roots_override_callback");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100455 grpc_ssl_credentials_create_import = (grpc_ssl_credentials_create_type) GetProcAddress(library, "grpc_ssl_credentials_create");
456 grpc_call_credentials_release_import = (grpc_call_credentials_release_type) GetProcAddress(library, "grpc_call_credentials_release");
457 grpc_composite_channel_credentials_create_import = (grpc_composite_channel_credentials_create_type) GetProcAddress(library, "grpc_composite_channel_credentials_create");
458 grpc_composite_call_credentials_create_import = (grpc_composite_call_credentials_create_type) GetProcAddress(library, "grpc_composite_call_credentials_create");
459 grpc_google_compute_engine_credentials_create_import = (grpc_google_compute_engine_credentials_create_type) GetProcAddress(library, "grpc_google_compute_engine_credentials_create");
Nicolas "Pixel" Nobled2f20ef2016-01-31 07:52:59 +0100460 grpc_max_auth_token_lifetime_import = (grpc_max_auth_token_lifetime_type) GetProcAddress(library, "grpc_max_auth_token_lifetime");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100461 grpc_service_account_jwt_access_credentials_create_import = (grpc_service_account_jwt_access_credentials_create_type) GetProcAddress(library, "grpc_service_account_jwt_access_credentials_create");
462 grpc_google_refresh_token_credentials_create_import = (grpc_google_refresh_token_credentials_create_type) GetProcAddress(library, "grpc_google_refresh_token_credentials_create");
463 grpc_access_token_credentials_create_import = (grpc_access_token_credentials_create_type) GetProcAddress(library, "grpc_access_token_credentials_create");
464 grpc_google_iam_credentials_create_import = (grpc_google_iam_credentials_create_type) GetProcAddress(library, "grpc_google_iam_credentials_create");
465 grpc_metadata_credentials_create_from_plugin_import = (grpc_metadata_credentials_create_from_plugin_type) GetProcAddress(library, "grpc_metadata_credentials_create_from_plugin");
466 grpc_secure_channel_create_import = (grpc_secure_channel_create_type) GetProcAddress(library, "grpc_secure_channel_create");
467 grpc_server_credentials_release_import = (grpc_server_credentials_release_type) GetProcAddress(library, "grpc_server_credentials_release");
468 grpc_ssl_server_credentials_create_import = (grpc_ssl_server_credentials_create_type) GetProcAddress(library, "grpc_ssl_server_credentials_create");
Deepak Lukosedba4c5f2016-03-25 12:54:25 -0700469 grpc_ssl_server_credentials_create_ex_import = (grpc_ssl_server_credentials_create_ex_type) GetProcAddress(library, "grpc_ssl_server_credentials_create_ex");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100470 grpc_server_add_secure_http2_port_import = (grpc_server_add_secure_http2_port_type) GetProcAddress(library, "grpc_server_add_secure_http2_port");
471 grpc_call_set_credentials_import = (grpc_call_set_credentials_type) GetProcAddress(library, "grpc_call_set_credentials");
472 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");
Craig Tillerc3350542016-10-26 16:19:01 -0700473 grpc_slice_ref_import = (grpc_slice_ref_type) GetProcAddress(library, "grpc_slice_ref");
474 grpc_slice_unref_import = (grpc_slice_unref_type) GetProcAddress(library, "grpc_slice_unref");
475 grpc_slice_new_import = (grpc_slice_new_type) GetProcAddress(library, "grpc_slice_new");
476 grpc_slice_new_with_user_data_import = (grpc_slice_new_with_user_data_type) GetProcAddress(library, "grpc_slice_new_with_user_data");
477 grpc_slice_new_with_len_import = (grpc_slice_new_with_len_type) GetProcAddress(library, "grpc_slice_new_with_len");
478 grpc_slice_malloc_import = (grpc_slice_malloc_type) GetProcAddress(library, "grpc_slice_malloc");
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800479 grpc_slice_intern_import = (grpc_slice_intern_type) GetProcAddress(library, "grpc_slice_intern");
Craig Tillerc3350542016-10-26 16:19:01 -0700480 grpc_slice_from_copied_string_import = (grpc_slice_from_copied_string_type) GetProcAddress(library, "grpc_slice_from_copied_string");
481 grpc_slice_from_copied_buffer_import = (grpc_slice_from_copied_buffer_type) GetProcAddress(library, "grpc_slice_from_copied_buffer");
482 grpc_slice_from_static_string_import = (grpc_slice_from_static_string_type) GetProcAddress(library, "grpc_slice_from_static_string");
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800483 grpc_slice_from_static_buffer_import = (grpc_slice_from_static_buffer_type) GetProcAddress(library, "grpc_slice_from_static_buffer");
Craig Tillerc3350542016-10-26 16:19:01 -0700484 grpc_slice_sub_import = (grpc_slice_sub_type) GetProcAddress(library, "grpc_slice_sub");
485 grpc_slice_sub_no_ref_import = (grpc_slice_sub_no_ref_type) GetProcAddress(library, "grpc_slice_sub_no_ref");
486 grpc_slice_split_tail_import = (grpc_slice_split_tail_type) GetProcAddress(library, "grpc_slice_split_tail");
487 grpc_slice_split_head_import = (grpc_slice_split_head_type) GetProcAddress(library, "grpc_slice_split_head");
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800488 grpc_empty_slice_import = (grpc_empty_slice_type) GetProcAddress(library, "grpc_empty_slice");
489 grpc_slice_default_hash_impl_import = (grpc_slice_default_hash_impl_type) GetProcAddress(library, "grpc_slice_default_hash_impl");
490 grpc_slice_default_eq_impl_import = (grpc_slice_default_eq_impl_type) GetProcAddress(library, "grpc_slice_default_eq_impl");
491 grpc_slice_eq_import = (grpc_slice_eq_type) GetProcAddress(library, "grpc_slice_eq");
Craig Tillerc3350542016-10-26 16:19:01 -0700492 grpc_slice_cmp_import = (grpc_slice_cmp_type) GetProcAddress(library, "grpc_slice_cmp");
493 grpc_slice_str_cmp_import = (grpc_slice_str_cmp_type) GetProcAddress(library, "grpc_slice_str_cmp");
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800494 grpc_slice_buf_cmp_import = (grpc_slice_buf_cmp_type) GetProcAddress(library, "grpc_slice_buf_cmp");
495 grpc_slice_buf_start_eq_import = (grpc_slice_buf_start_eq_type) GetProcAddress(library, "grpc_slice_buf_start_eq");
496 grpc_slice_rchr_import = (grpc_slice_rchr_type) GetProcAddress(library, "grpc_slice_rchr");
497 grpc_slice_chr_import = (grpc_slice_chr_type) GetProcAddress(library, "grpc_slice_chr");
498 grpc_slice_slice_import = (grpc_slice_slice_type) GetProcAddress(library, "grpc_slice_slice");
499 grpc_slice_hash_import = (grpc_slice_hash_type) GetProcAddress(library, "grpc_slice_hash");
Craig Tillerc5866662016-11-16 15:25:00 -0800500 grpc_slice_is_equivalent_import = (grpc_slice_is_equivalent_type) GetProcAddress(library, "grpc_slice_is_equivalent");
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800501 grpc_slice_dup_import = (grpc_slice_dup_type) GetProcAddress(library, "grpc_slice_dup");
502 grpc_slice_to_c_string_import = (grpc_slice_to_c_string_type) GetProcAddress(library, "grpc_slice_to_c_string");
Craig Tillerc3350542016-10-26 16:19:01 -0700503 grpc_slice_buffer_init_import = (grpc_slice_buffer_init_type) GetProcAddress(library, "grpc_slice_buffer_init");
504 grpc_slice_buffer_destroy_import = (grpc_slice_buffer_destroy_type) GetProcAddress(library, "grpc_slice_buffer_destroy");
505 grpc_slice_buffer_add_import = (grpc_slice_buffer_add_type) GetProcAddress(library, "grpc_slice_buffer_add");
506 grpc_slice_buffer_add_indexed_import = (grpc_slice_buffer_add_indexed_type) GetProcAddress(library, "grpc_slice_buffer_add_indexed");
507 grpc_slice_buffer_addn_import = (grpc_slice_buffer_addn_type) GetProcAddress(library, "grpc_slice_buffer_addn");
508 grpc_slice_buffer_tiny_add_import = (grpc_slice_buffer_tiny_add_type) GetProcAddress(library, "grpc_slice_buffer_tiny_add");
509 grpc_slice_buffer_pop_import = (grpc_slice_buffer_pop_type) GetProcAddress(library, "grpc_slice_buffer_pop");
510 grpc_slice_buffer_reset_and_unref_import = (grpc_slice_buffer_reset_and_unref_type) GetProcAddress(library, "grpc_slice_buffer_reset_and_unref");
511 grpc_slice_buffer_swap_import = (grpc_slice_buffer_swap_type) GetProcAddress(library, "grpc_slice_buffer_swap");
512 grpc_slice_buffer_move_into_import = (grpc_slice_buffer_move_into_type) GetProcAddress(library, "grpc_slice_buffer_move_into");
513 grpc_slice_buffer_trim_end_import = (grpc_slice_buffer_trim_end_type) GetProcAddress(library, "grpc_slice_buffer_trim_end");
514 grpc_slice_buffer_move_first_import = (grpc_slice_buffer_move_first_type) GetProcAddress(library, "grpc_slice_buffer_move_first");
Craig Tiller0cf6a712017-01-20 14:07:05 -0800515 grpc_slice_buffer_move_first_into_buffer_import = (grpc_slice_buffer_move_first_into_buffer_type) GetProcAddress(library, "grpc_slice_buffer_move_first_into_buffer");
Craig Tillerc3350542016-10-26 16:19:01 -0700516 grpc_slice_buffer_take_first_import = (grpc_slice_buffer_take_first_type) GetProcAddress(library, "grpc_slice_buffer_take_first");
Craig Tiller0cf6a712017-01-20 14:07:05 -0800517 grpc_slice_buffer_undo_take_first_import = (grpc_slice_buffer_undo_take_first_type) GetProcAddress(library, "grpc_slice_buffer_undo_take_first");
David Garcia Quintas3b31fdf2016-07-27 18:17:12 -0700518 gpr_malloc_import = (gpr_malloc_type) GetProcAddress(library, "gpr_malloc");
Craig Tillerff714492017-02-17 09:02:18 -0800519 gpr_zalloc_import = (gpr_zalloc_type) GetProcAddress(library, "gpr_zalloc");
David Garcia Quintas3b31fdf2016-07-27 18:17:12 -0700520 gpr_free_import = (gpr_free_type) GetProcAddress(library, "gpr_free");
521 gpr_realloc_import = (gpr_realloc_type) GetProcAddress(library, "gpr_realloc");
522 gpr_malloc_aligned_import = (gpr_malloc_aligned_type) GetProcAddress(library, "gpr_malloc_aligned");
523 gpr_free_aligned_import = (gpr_free_aligned_type) GetProcAddress(library, "gpr_free_aligned");
524 gpr_set_allocation_functions_import = (gpr_set_allocation_functions_type) GetProcAddress(library, "gpr_set_allocation_functions");
525 gpr_get_allocation_functions_import = (gpr_get_allocation_functions_type) GetProcAddress(library, "gpr_get_allocation_functions");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100526 gpr_avl_create_import = (gpr_avl_create_type) GetProcAddress(library, "gpr_avl_create");
527 gpr_avl_ref_import = (gpr_avl_ref_type) GetProcAddress(library, "gpr_avl_ref");
528 gpr_avl_unref_import = (gpr_avl_unref_type) GetProcAddress(library, "gpr_avl_unref");
529 gpr_avl_add_import = (gpr_avl_add_type) GetProcAddress(library, "gpr_avl_add");
530 gpr_avl_remove_import = (gpr_avl_remove_type) GetProcAddress(library, "gpr_avl_remove");
531 gpr_avl_get_import = (gpr_avl_get_type) GetProcAddress(library, "gpr_avl_get");
Craig Tillerd6a5b802016-05-13 20:17:38 -0700532 gpr_avl_maybe_get_import = (gpr_avl_maybe_get_type) GetProcAddress(library, "gpr_avl_maybe_get");
533 gpr_avl_is_empty_import = (gpr_avl_is_empty_type) GetProcAddress(library, "gpr_avl_is_empty");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100534 gpr_cmdline_create_import = (gpr_cmdline_create_type) GetProcAddress(library, "gpr_cmdline_create");
535 gpr_cmdline_add_int_import = (gpr_cmdline_add_int_type) GetProcAddress(library, "gpr_cmdline_add_int");
536 gpr_cmdline_add_flag_import = (gpr_cmdline_add_flag_type) GetProcAddress(library, "gpr_cmdline_add_flag");
537 gpr_cmdline_add_string_import = (gpr_cmdline_add_string_type) GetProcAddress(library, "gpr_cmdline_add_string");
538 gpr_cmdline_on_extra_arg_import = (gpr_cmdline_on_extra_arg_type) GetProcAddress(library, "gpr_cmdline_on_extra_arg");
539 gpr_cmdline_set_survive_failure_import = (gpr_cmdline_set_survive_failure_type) GetProcAddress(library, "gpr_cmdline_set_survive_failure");
540 gpr_cmdline_parse_import = (gpr_cmdline_parse_type) GetProcAddress(library, "gpr_cmdline_parse");
541 gpr_cmdline_destroy_import = (gpr_cmdline_destroy_type) GetProcAddress(library, "gpr_cmdline_destroy");
542 gpr_cmdline_usage_string_import = (gpr_cmdline_usage_string_type) GetProcAddress(library, "gpr_cmdline_usage_string");
543 gpr_cpu_num_cores_import = (gpr_cpu_num_cores_type) GetProcAddress(library, "gpr_cpu_num_cores");
544 gpr_cpu_current_cpu_import = (gpr_cpu_current_cpu_type) GetProcAddress(library, "gpr_cpu_current_cpu");
545 gpr_histogram_create_import = (gpr_histogram_create_type) GetProcAddress(library, "gpr_histogram_create");
546 gpr_histogram_destroy_import = (gpr_histogram_destroy_type) GetProcAddress(library, "gpr_histogram_destroy");
547 gpr_histogram_add_import = (gpr_histogram_add_type) GetProcAddress(library, "gpr_histogram_add");
548 gpr_histogram_merge_import = (gpr_histogram_merge_type) GetProcAddress(library, "gpr_histogram_merge");
549 gpr_histogram_percentile_import = (gpr_histogram_percentile_type) GetProcAddress(library, "gpr_histogram_percentile");
550 gpr_histogram_mean_import = (gpr_histogram_mean_type) GetProcAddress(library, "gpr_histogram_mean");
551 gpr_histogram_stddev_import = (gpr_histogram_stddev_type) GetProcAddress(library, "gpr_histogram_stddev");
552 gpr_histogram_variance_import = (gpr_histogram_variance_type) GetProcAddress(library, "gpr_histogram_variance");
553 gpr_histogram_maximum_import = (gpr_histogram_maximum_type) GetProcAddress(library, "gpr_histogram_maximum");
554 gpr_histogram_minimum_import = (gpr_histogram_minimum_type) GetProcAddress(library, "gpr_histogram_minimum");
555 gpr_histogram_count_import = (gpr_histogram_count_type) GetProcAddress(library, "gpr_histogram_count");
556 gpr_histogram_sum_import = (gpr_histogram_sum_type) GetProcAddress(library, "gpr_histogram_sum");
557 gpr_histogram_sum_of_squares_import = (gpr_histogram_sum_of_squares_type) GetProcAddress(library, "gpr_histogram_sum_of_squares");
558 gpr_histogram_get_contents_import = (gpr_histogram_get_contents_type) GetProcAddress(library, "gpr_histogram_get_contents");
559 gpr_histogram_merge_contents_import = (gpr_histogram_merge_contents_type) GetProcAddress(library, "gpr_histogram_merge_contents");
560 gpr_join_host_port_import = (gpr_join_host_port_type) GetProcAddress(library, "gpr_join_host_port");
561 gpr_split_host_port_import = (gpr_split_host_port_type) GetProcAddress(library, "gpr_split_host_port");
David Garcia Quintasc79b0652016-07-27 21:11:58 -0700562 gpr_log_import = (gpr_log_type) GetProcAddress(library, "gpr_log");
563 gpr_log_message_import = (gpr_log_message_type) GetProcAddress(library, "gpr_log_message");
564 gpr_set_log_verbosity_import = (gpr_set_log_verbosity_type) GetProcAddress(library, "gpr_set_log_verbosity");
565 gpr_log_verbosity_init_import = (gpr_log_verbosity_init_type) GetProcAddress(library, "gpr_log_verbosity_init");
566 gpr_set_log_function_import = (gpr_set_log_function_type) GetProcAddress(library, "gpr_set_log_function");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100567 gpr_format_message_import = (gpr_format_message_type) GetProcAddress(library, "gpr_format_message");
568 gpr_strdup_import = (gpr_strdup_type) GetProcAddress(library, "gpr_strdup");
569 gpr_asprintf_import = (gpr_asprintf_type) GetProcAddress(library, "gpr_asprintf");
570 gpr_subprocess_binary_extension_import = (gpr_subprocess_binary_extension_type) GetProcAddress(library, "gpr_subprocess_binary_extension");
571 gpr_subprocess_create_import = (gpr_subprocess_create_type) GetProcAddress(library, "gpr_subprocess_create");
572 gpr_subprocess_destroy_import = (gpr_subprocess_destroy_type) GetProcAddress(library, "gpr_subprocess_destroy");
573 gpr_subprocess_join_import = (gpr_subprocess_join_type) GetProcAddress(library, "gpr_subprocess_join");
574 gpr_subprocess_interrupt_import = (gpr_subprocess_interrupt_type) GetProcAddress(library, "gpr_subprocess_interrupt");
David Garcia Quintas2ee99f42016-08-01 19:15:31 -0700575 gpr_mu_init_import = (gpr_mu_init_type) GetProcAddress(library, "gpr_mu_init");
576 gpr_mu_destroy_import = (gpr_mu_destroy_type) GetProcAddress(library, "gpr_mu_destroy");
577 gpr_mu_lock_import = (gpr_mu_lock_type) GetProcAddress(library, "gpr_mu_lock");
578 gpr_mu_unlock_import = (gpr_mu_unlock_type) GetProcAddress(library, "gpr_mu_unlock");
579 gpr_mu_trylock_import = (gpr_mu_trylock_type) GetProcAddress(library, "gpr_mu_trylock");
580 gpr_cv_init_import = (gpr_cv_init_type) GetProcAddress(library, "gpr_cv_init");
581 gpr_cv_destroy_import = (gpr_cv_destroy_type) GetProcAddress(library, "gpr_cv_destroy");
582 gpr_cv_wait_import = (gpr_cv_wait_type) GetProcAddress(library, "gpr_cv_wait");
583 gpr_cv_signal_import = (gpr_cv_signal_type) GetProcAddress(library, "gpr_cv_signal");
584 gpr_cv_broadcast_import = (gpr_cv_broadcast_type) GetProcAddress(library, "gpr_cv_broadcast");
585 gpr_once_init_import = (gpr_once_init_type) GetProcAddress(library, "gpr_once_init");
586 gpr_event_init_import = (gpr_event_init_type) GetProcAddress(library, "gpr_event_init");
587 gpr_event_set_import = (gpr_event_set_type) GetProcAddress(library, "gpr_event_set");
588 gpr_event_get_import = (gpr_event_get_type) GetProcAddress(library, "gpr_event_get");
589 gpr_event_wait_import = (gpr_event_wait_type) GetProcAddress(library, "gpr_event_wait");
590 gpr_ref_init_import = (gpr_ref_init_type) GetProcAddress(library, "gpr_ref_init");
591 gpr_ref_import = (gpr_ref_type) GetProcAddress(library, "gpr_ref");
592 gpr_ref_non_zero_import = (gpr_ref_non_zero_type) GetProcAddress(library, "gpr_ref_non_zero");
593 gpr_refn_import = (gpr_refn_type) GetProcAddress(library, "gpr_refn");
594 gpr_unref_import = (gpr_unref_type) GetProcAddress(library, "gpr_unref");
ncteisen3da3ce32017-02-17 09:51:25 -0800595 gpr_ref_is_unique_import = (gpr_ref_is_unique_type) GetProcAddress(library, "gpr_ref_is_unique");
David Garcia Quintas2ee99f42016-08-01 19:15:31 -0700596 gpr_stats_init_import = (gpr_stats_init_type) GetProcAddress(library, "gpr_stats_init");
597 gpr_stats_inc_import = (gpr_stats_inc_type) GetProcAddress(library, "gpr_stats_inc");
598 gpr_stats_read_import = (gpr_stats_read_type) GetProcAddress(library, "gpr_stats_read");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100599 gpr_thd_new_import = (gpr_thd_new_type) GetProcAddress(library, "gpr_thd_new");
600 gpr_thd_options_default_import = (gpr_thd_options_default_type) GetProcAddress(library, "gpr_thd_options_default");
601 gpr_thd_options_set_detached_import = (gpr_thd_options_set_detached_type) GetProcAddress(library, "gpr_thd_options_set_detached");
602 gpr_thd_options_set_joinable_import = (gpr_thd_options_set_joinable_type) GetProcAddress(library, "gpr_thd_options_set_joinable");
603 gpr_thd_options_is_detached_import = (gpr_thd_options_is_detached_type) GetProcAddress(library, "gpr_thd_options_is_detached");
604 gpr_thd_options_is_joinable_import = (gpr_thd_options_is_joinable_type) GetProcAddress(library, "gpr_thd_options_is_joinable");
605 gpr_thd_currentid_import = (gpr_thd_currentid_type) GetProcAddress(library, "gpr_thd_currentid");
606 gpr_thd_join_import = (gpr_thd_join_type) GetProcAddress(library, "gpr_thd_join");
David Garcia Quintas1399e462016-07-27 20:31:55 -0700607 gpr_time_0_import = (gpr_time_0_type) GetProcAddress(library, "gpr_time_0");
608 gpr_inf_future_import = (gpr_inf_future_type) GetProcAddress(library, "gpr_inf_future");
609 gpr_inf_past_import = (gpr_inf_past_type) GetProcAddress(library, "gpr_inf_past");
610 gpr_time_init_import = (gpr_time_init_type) GetProcAddress(library, "gpr_time_init");
611 gpr_now_import = (gpr_now_type) GetProcAddress(library, "gpr_now");
612 gpr_convert_clock_type_import = (gpr_convert_clock_type_type) GetProcAddress(library, "gpr_convert_clock_type");
613 gpr_time_cmp_import = (gpr_time_cmp_type) GetProcAddress(library, "gpr_time_cmp");
614 gpr_time_max_import = (gpr_time_max_type) GetProcAddress(library, "gpr_time_max");
615 gpr_time_min_import = (gpr_time_min_type) GetProcAddress(library, "gpr_time_min");
616 gpr_time_add_import = (gpr_time_add_type) GetProcAddress(library, "gpr_time_add");
617 gpr_time_sub_import = (gpr_time_sub_type) GetProcAddress(library, "gpr_time_sub");
618 gpr_time_from_micros_import = (gpr_time_from_micros_type) GetProcAddress(library, "gpr_time_from_micros");
619 gpr_time_from_nanos_import = (gpr_time_from_nanos_type) GetProcAddress(library, "gpr_time_from_nanos");
620 gpr_time_from_millis_import = (gpr_time_from_millis_type) GetProcAddress(library, "gpr_time_from_millis");
621 gpr_time_from_seconds_import = (gpr_time_from_seconds_type) GetProcAddress(library, "gpr_time_from_seconds");
622 gpr_time_from_minutes_import = (gpr_time_from_minutes_type) GetProcAddress(library, "gpr_time_from_minutes");
623 gpr_time_from_hours_import = (gpr_time_from_hours_type) GetProcAddress(library, "gpr_time_from_hours");
624 gpr_time_to_millis_import = (gpr_time_to_millis_type) GetProcAddress(library, "gpr_time_to_millis");
625 gpr_time_similar_import = (gpr_time_similar_type) GetProcAddress(library, "gpr_time_similar");
626 gpr_sleep_until_import = (gpr_sleep_until_type) GetProcAddress(library, "gpr_sleep_until");
627 gpr_timespec_to_micros_import = (gpr_timespec_to_micros_type) GetProcAddress(library, "gpr_timespec_to_micros");
Nicolas "Pixel" Nobled14b6ac2016-01-30 05:21:15 +0100628}
629
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700630#endif /* GPR_WINDOWS */