Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 1 | /* |
| 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 | #ifndef GRPC_RB_GRPC_IMPORTS_H_ |
| 35 | #define GRPC_RB_GRPC_IMPORTS_H_ |
| 36 | |
| 37 | #include <grpc/support/port_platform.h> |
| 38 | |
Yuchen Zeng | 12dfdc3 | 2016-04-26 22:05:41 -0700 | [diff] [blame] | 39 | #ifdef GPR_WINDOWS |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 40 | |
| 41 | #include <windows.h> |
| 42 | |
David Garcia Quintas | 3b31fdf | 2016-07-27 18:17:12 -0700 | [diff] [blame] | 43 | #include <grpc/byte_buffer.h> |
Nicolas "Pixel" Noble | b8e9e9c | 2016-01-30 18:35:13 +0100 | [diff] [blame] | 44 | #include <grpc/census.h> |
| 45 | #include <grpc/compression.h> |
| 46 | #include <grpc/grpc.h> |
Adam Michalik | 321b1fb | 2016-05-16 15:42:36 -0700 | [diff] [blame] | 47 | #include <grpc/grpc_posix.h> |
Nicolas "Pixel" Noble | b8e9e9c | 2016-01-30 18:35:13 +0100 | [diff] [blame] | 48 | #include <grpc/grpc_security.h> |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 49 | #include <grpc/slice.h> |
| 50 | #include <grpc/slice_buffer.h> |
David Garcia Quintas | 3b31fdf | 2016-07-27 18:17:12 -0700 | [diff] [blame] | 51 | #include <grpc/support/alloc.h> |
Nicolas "Pixel" Noble | b8e9e9c | 2016-01-30 18:35:13 +0100 | [diff] [blame] | 52 | #include <grpc/support/avl.h> |
| 53 | #include <grpc/support/cmdline.h> |
| 54 | #include <grpc/support/cpu.h> |
| 55 | #include <grpc/support/histogram.h> |
| 56 | #include <grpc/support/host_port.h> |
David Garcia Quintas | c79b065 | 2016-07-27 21:11:58 -0700 | [diff] [blame] | 57 | #include <grpc/support/log.h> |
Yuchen Zeng | 12dfdc3 | 2016-04-26 22:05:41 -0700 | [diff] [blame] | 58 | #include <grpc/support/log_windows.h> |
Nicolas "Pixel" Noble | b8e9e9c | 2016-01-30 18:35:13 +0100 | [diff] [blame] | 59 | #include <grpc/support/string_util.h> |
| 60 | #include <grpc/support/subprocess.h> |
David Garcia Quintas | 2ee99f4 | 2016-08-01 19:15:31 -0700 | [diff] [blame] | 61 | #include <grpc/support/sync.h> |
Nicolas "Pixel" Noble | b8e9e9c | 2016-01-30 18:35:13 +0100 | [diff] [blame] | 62 | #include <grpc/support/thd.h> |
David Garcia Quintas | 1399e46 | 2016-07-27 20:31:55 -0700 | [diff] [blame] | 63 | #include <grpc/support/time.h> |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 64 | |
Craig Tiller | d41a4a7 | 2016-10-26 16:16:06 -0700 | [diff] [blame] | 65 | typedef grpc_byte_buffer *(*grpc_raw_byte_buffer_create_type)(grpc_slice *slices, size_t nslices); |
David Garcia Quintas | 3b31fdf | 2016-07-27 18:17:12 -0700 | [diff] [blame] | 66 | extern grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import; |
| 67 | #define grpc_raw_byte_buffer_create grpc_raw_byte_buffer_create_import |
Craig Tiller | d41a4a7 | 2016-10-26 16:16:06 -0700 | [diff] [blame] | 68 | typedef grpc_byte_buffer *(*grpc_raw_compressed_byte_buffer_create_type)(grpc_slice *slices, size_t nslices, grpc_compression_algorithm compression); |
David Garcia Quintas | 3b31fdf | 2016-07-27 18:17:12 -0700 | [diff] [blame] | 69 | extern grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import; |
| 70 | #define grpc_raw_compressed_byte_buffer_create grpc_raw_compressed_byte_buffer_create_import |
| 71 | typedef grpc_byte_buffer *(*grpc_byte_buffer_copy_type)(grpc_byte_buffer *bb); |
| 72 | extern grpc_byte_buffer_copy_type grpc_byte_buffer_copy_import; |
| 73 | #define grpc_byte_buffer_copy grpc_byte_buffer_copy_import |
| 74 | typedef size_t(*grpc_byte_buffer_length_type)(grpc_byte_buffer *bb); |
| 75 | extern grpc_byte_buffer_length_type grpc_byte_buffer_length_import; |
| 76 | #define grpc_byte_buffer_length grpc_byte_buffer_length_import |
| 77 | typedef void(*grpc_byte_buffer_destroy_type)(grpc_byte_buffer *byte_buffer); |
| 78 | extern grpc_byte_buffer_destroy_type grpc_byte_buffer_destroy_import; |
| 79 | #define grpc_byte_buffer_destroy grpc_byte_buffer_destroy_import |
| 80 | typedef int(*grpc_byte_buffer_reader_init_type)(grpc_byte_buffer_reader *reader, grpc_byte_buffer *buffer); |
| 81 | extern grpc_byte_buffer_reader_init_type grpc_byte_buffer_reader_init_import; |
| 82 | #define grpc_byte_buffer_reader_init grpc_byte_buffer_reader_init_import |
| 83 | typedef void(*grpc_byte_buffer_reader_destroy_type)(grpc_byte_buffer_reader *reader); |
| 84 | extern grpc_byte_buffer_reader_destroy_type grpc_byte_buffer_reader_destroy_import; |
| 85 | #define grpc_byte_buffer_reader_destroy grpc_byte_buffer_reader_destroy_import |
Craig Tiller | d41a4a7 | 2016-10-26 16:16:06 -0700 | [diff] [blame] | 86 | typedef int(*grpc_byte_buffer_reader_next_type)(grpc_byte_buffer_reader *reader, grpc_slice *slice); |
David Garcia Quintas | 3b31fdf | 2016-07-27 18:17:12 -0700 | [diff] [blame] | 87 | extern grpc_byte_buffer_reader_next_type grpc_byte_buffer_reader_next_import; |
| 88 | #define grpc_byte_buffer_reader_next grpc_byte_buffer_reader_next_import |
Craig Tiller | d41a4a7 | 2016-10-26 16:16:06 -0700 | [diff] [blame] | 89 | typedef grpc_slice(*grpc_byte_buffer_reader_readall_type)(grpc_byte_buffer_reader *reader); |
David Garcia Quintas | 3b31fdf | 2016-07-27 18:17:12 -0700 | [diff] [blame] | 90 | extern grpc_byte_buffer_reader_readall_type grpc_byte_buffer_reader_readall_import; |
| 91 | #define grpc_byte_buffer_reader_readall grpc_byte_buffer_reader_readall_import |
| 92 | typedef grpc_byte_buffer *(*grpc_raw_byte_buffer_from_reader_type)(grpc_byte_buffer_reader *reader); |
| 93 | extern grpc_raw_byte_buffer_from_reader_type grpc_raw_byte_buffer_from_reader_import; |
| 94 | #define grpc_raw_byte_buffer_from_reader grpc_raw_byte_buffer_from_reader_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 95 | typedef int(*census_initialize_type)(int features); |
| 96 | extern census_initialize_type census_initialize_import; |
| 97 | #define census_initialize census_initialize_import |
| 98 | typedef void(*census_shutdown_type)(void); |
| 99 | extern census_shutdown_type census_shutdown_import; |
| 100 | #define census_shutdown census_shutdown_import |
| 101 | typedef int(*census_supported_type)(void); |
| 102 | extern census_supported_type census_supported_import; |
| 103 | #define census_supported census_supported_import |
| 104 | typedef int(*census_enabled_type)(void); |
| 105 | extern census_enabled_type census_enabled_import; |
| 106 | #define census_enabled census_enabled_import |
Alistair Veitch | 6f2b899 | 2016-02-03 09:02:46 -0800 | [diff] [blame] | 107 | typedef census_context *(*census_context_create_type)(const census_context *base, const census_tag *tags, int ntags, census_context_status const **status); |
| 108 | extern census_context_create_type census_context_create_import; |
| 109 | #define census_context_create census_context_create_import |
| 110 | typedef void(*census_context_destroy_type)(census_context *context); |
| 111 | extern census_context_destroy_type census_context_destroy_import; |
| 112 | #define census_context_destroy census_context_destroy_import |
| 113 | typedef const census_context_status *(*census_context_get_status_type)(const census_context *context); |
| 114 | extern census_context_get_status_type census_context_get_status_import; |
| 115 | #define census_context_get_status census_context_get_status_import |
| 116 | typedef void(*census_context_initialize_iterator_type)(const census_context *context, census_context_iterator *iterator); |
| 117 | extern census_context_initialize_iterator_type census_context_initialize_iterator_import; |
| 118 | #define census_context_initialize_iterator census_context_initialize_iterator_import |
| 119 | typedef int(*census_context_next_tag_type)(census_context_iterator *iterator, census_tag *tag); |
| 120 | extern census_context_next_tag_type census_context_next_tag_import; |
| 121 | #define census_context_next_tag census_context_next_tag_import |
| 122 | typedef int(*census_context_get_tag_type)(const census_context *context, const char *key, census_tag *tag); |
| 123 | extern census_context_get_tag_type census_context_get_tag_import; |
| 124 | #define census_context_get_tag census_context_get_tag_import |
Alistair Veitch | 0cc8242 | 2016-02-26 10:54:20 -0800 | [diff] [blame] | 125 | typedef size_t(*census_context_encode_type)(const census_context *context, char *buffer, size_t buf_size); |
Alistair Veitch | 6f2b899 | 2016-02-03 09:02:46 -0800 | [diff] [blame] | 126 | extern census_context_encode_type census_context_encode_import; |
| 127 | #define census_context_encode census_context_encode_import |
Alistair Veitch | 0cc8242 | 2016-02-26 10:54:20 -0800 | [diff] [blame] | 128 | typedef census_context *(*census_context_decode_type)(const char *buffer, size_t size); |
Alistair Veitch | 6f2b899 | 2016-02-03 09:02:46 -0800 | [diff] [blame] | 129 | extern census_context_decode_type census_context_decode_import; |
| 130 | #define census_context_decode census_context_decode_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 131 | typedef int(*census_trace_mask_type)(const census_context *context); |
| 132 | extern census_trace_mask_type census_trace_mask_import; |
| 133 | #define census_trace_mask census_trace_mask_import |
| 134 | typedef void(*census_set_trace_mask_type)(int trace_mask); |
| 135 | extern census_set_trace_mask_type census_set_trace_mask_import; |
| 136 | #define census_set_trace_mask census_set_trace_mask_import |
| 137 | typedef census_timestamp(*census_start_rpc_op_timestamp_type)(void); |
| 138 | extern census_start_rpc_op_timestamp_type census_start_rpc_op_timestamp_import; |
| 139 | #define census_start_rpc_op_timestamp census_start_rpc_op_timestamp_import |
| 140 | typedef census_context *(*census_start_client_rpc_op_type)(const census_context *context, int64_t rpc_name_id, const census_rpc_name_info *rpc_name_info, const char *peer, int trace_mask, const census_timestamp *start_time); |
| 141 | extern census_start_client_rpc_op_type census_start_client_rpc_op_import; |
| 142 | #define census_start_client_rpc_op census_start_client_rpc_op_import |
| 143 | typedef void(*census_set_rpc_client_peer_type)(census_context *context, const char *peer); |
| 144 | extern census_set_rpc_client_peer_type census_set_rpc_client_peer_import; |
| 145 | #define census_set_rpc_client_peer census_set_rpc_client_peer_import |
| 146 | typedef census_context *(*census_start_server_rpc_op_type)(const char *buffer, int64_t rpc_name_id, const census_rpc_name_info *rpc_name_info, const char *peer, int trace_mask, census_timestamp *start_time); |
| 147 | extern census_start_server_rpc_op_type census_start_server_rpc_op_import; |
| 148 | #define census_start_server_rpc_op census_start_server_rpc_op_import |
| 149 | typedef census_context *(*census_start_op_type)(census_context *context, const char *family, const char *name, int trace_mask); |
| 150 | extern census_start_op_type census_start_op_import; |
| 151 | #define census_start_op census_start_op_import |
| 152 | typedef void(*census_end_op_type)(census_context *context, int status); |
| 153 | extern census_end_op_type census_end_op_import; |
| 154 | #define census_end_op census_end_op_import |
| 155 | typedef void(*census_trace_print_type)(census_context *context, uint32_t type, const char *buffer, size_t n); |
| 156 | extern census_trace_print_type census_trace_print_import; |
| 157 | #define census_trace_print census_trace_print_import |
| 158 | typedef int(*census_trace_scan_start_type)(int consume); |
| 159 | extern census_trace_scan_start_type census_trace_scan_start_import; |
| 160 | #define census_trace_scan_start census_trace_scan_start_import |
| 161 | typedef int(*census_get_trace_record_type)(census_trace_record *trace_record); |
| 162 | extern census_get_trace_record_type census_get_trace_record_import; |
| 163 | #define census_get_trace_record census_get_trace_record_import |
| 164 | typedef void(*census_trace_scan_end_type)(); |
| 165 | extern census_trace_scan_end_type census_trace_scan_end_import; |
| 166 | #define census_trace_scan_end census_trace_scan_end_import |
Alistair Veitch | 4aaba75 | 2016-06-02 17:11:46 -0700 | [diff] [blame] | 167 | typedef int32_t(*census_define_resource_type)(const uint8_t *resource_pb, size_t resource_pb_size); |
| 168 | extern census_define_resource_type census_define_resource_import; |
| 169 | #define census_define_resource census_define_resource_import |
| 170 | typedef void(*census_delete_resource_type)(int32_t resource_id); |
| 171 | extern census_delete_resource_type census_delete_resource_import; |
| 172 | #define census_delete_resource census_delete_resource_import |
| 173 | typedef int32_t(*census_resource_id_type)(const char *name); |
| 174 | extern census_resource_id_type census_resource_id_import; |
| 175 | #define census_resource_id census_resource_id_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 176 | typedef void(*census_record_values_type)(census_context *context, census_value *values, size_t nvalues); |
| 177 | extern census_record_values_type census_record_values_import; |
| 178 | #define census_record_values census_record_values_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 179 | typedef int(*grpc_compression_algorithm_parse_type)(grpc_slice value, grpc_compression_algorithm *algorithm); |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 180 | extern grpc_compression_algorithm_parse_type grpc_compression_algorithm_parse_import; |
| 181 | #define grpc_compression_algorithm_parse grpc_compression_algorithm_parse_import |
| 182 | typedef int(*grpc_compression_algorithm_name_type)(grpc_compression_algorithm algorithm, char **name); |
| 183 | extern grpc_compression_algorithm_name_type grpc_compression_algorithm_name_import; |
| 184 | #define grpc_compression_algorithm_name grpc_compression_algorithm_name_import |
David Garcia Quintas | a36ec16 | 2016-03-18 10:00:23 -0700 | [diff] [blame] | 185 | typedef grpc_compression_algorithm(*grpc_compression_algorithm_for_level_type)(grpc_compression_level level, uint32_t accepted_encodings); |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 186 | extern grpc_compression_algorithm_for_level_type grpc_compression_algorithm_for_level_import; |
| 187 | #define grpc_compression_algorithm_for_level grpc_compression_algorithm_for_level_import |
| 188 | typedef void(*grpc_compression_options_init_type)(grpc_compression_options *opts); |
| 189 | extern grpc_compression_options_init_type grpc_compression_options_init_import; |
| 190 | #define grpc_compression_options_init grpc_compression_options_init_import |
| 191 | typedef void(*grpc_compression_options_enable_algorithm_type)(grpc_compression_options *opts, grpc_compression_algorithm algorithm); |
| 192 | extern grpc_compression_options_enable_algorithm_type grpc_compression_options_enable_algorithm_import; |
| 193 | #define grpc_compression_options_enable_algorithm grpc_compression_options_enable_algorithm_import |
| 194 | typedef void(*grpc_compression_options_disable_algorithm_type)(grpc_compression_options *opts, grpc_compression_algorithm algorithm); |
| 195 | extern grpc_compression_options_disable_algorithm_type grpc_compression_options_disable_algorithm_import; |
| 196 | #define grpc_compression_options_disable_algorithm grpc_compression_options_disable_algorithm_import |
| 197 | typedef int(*grpc_compression_options_is_algorithm_enabled_type)(const grpc_compression_options *opts, grpc_compression_algorithm algorithm); |
| 198 | extern grpc_compression_options_is_algorithm_enabled_type grpc_compression_options_is_algorithm_enabled_import; |
| 199 | #define grpc_compression_options_is_algorithm_enabled grpc_compression_options_is_algorithm_enabled_import |
| 200 | typedef void(*grpc_metadata_array_init_type)(grpc_metadata_array *array); |
| 201 | extern grpc_metadata_array_init_type grpc_metadata_array_init_import; |
| 202 | #define grpc_metadata_array_init grpc_metadata_array_init_import |
| 203 | typedef void(*grpc_metadata_array_destroy_type)(grpc_metadata_array *array); |
| 204 | extern grpc_metadata_array_destroy_type grpc_metadata_array_destroy_import; |
| 205 | #define grpc_metadata_array_destroy grpc_metadata_array_destroy_import |
| 206 | typedef void(*grpc_call_details_init_type)(grpc_call_details *details); |
| 207 | extern grpc_call_details_init_type grpc_call_details_init_import; |
| 208 | #define grpc_call_details_init grpc_call_details_init_import |
| 209 | typedef void(*grpc_call_details_destroy_type)(grpc_call_details *details); |
| 210 | extern grpc_call_details_destroy_type grpc_call_details_destroy_import; |
| 211 | #define grpc_call_details_destroy grpc_call_details_destroy_import |
| 212 | typedef void(*grpc_register_plugin_type)(void (*init)(void), void (*destroy)(void)); |
| 213 | extern grpc_register_plugin_type grpc_register_plugin_import; |
| 214 | #define grpc_register_plugin grpc_register_plugin_import |
| 215 | typedef void(*grpc_init_type)(void); |
| 216 | extern grpc_init_type grpc_init_import; |
| 217 | #define grpc_init grpc_init_import |
| 218 | typedef void(*grpc_shutdown_type)(void); |
| 219 | extern grpc_shutdown_type grpc_shutdown_import; |
| 220 | #define grpc_shutdown grpc_shutdown_import |
| 221 | typedef const char *(*grpc_version_string_type)(void); |
| 222 | extern grpc_version_string_type grpc_version_string_import; |
| 223 | #define grpc_version_string grpc_version_string_import |
Craig Tiller | d9f9076 | 2016-08-29 16:47:22 -0700 | [diff] [blame] | 224 | typedef const char *(*grpc_g_stands_for_type)(void); |
| 225 | extern grpc_g_stands_for_type grpc_g_stands_for_import; |
| 226 | #define grpc_g_stands_for grpc_g_stands_for_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 227 | typedef grpc_completion_queue *(*grpc_completion_queue_create_type)(void *reserved); |
| 228 | extern grpc_completion_queue_create_type grpc_completion_queue_create_import; |
| 229 | #define grpc_completion_queue_create grpc_completion_queue_create_import |
| 230 | typedef grpc_event(*grpc_completion_queue_next_type)(grpc_completion_queue *cq, gpr_timespec deadline, void *reserved); |
| 231 | extern grpc_completion_queue_next_type grpc_completion_queue_next_import; |
| 232 | #define grpc_completion_queue_next grpc_completion_queue_next_import |
| 233 | typedef grpc_event(*grpc_completion_queue_pluck_type)(grpc_completion_queue *cq, void *tag, gpr_timespec deadline, void *reserved); |
| 234 | extern grpc_completion_queue_pluck_type grpc_completion_queue_pluck_import; |
| 235 | #define grpc_completion_queue_pluck grpc_completion_queue_pluck_import |
| 236 | typedef void(*grpc_completion_queue_shutdown_type)(grpc_completion_queue *cq); |
| 237 | extern grpc_completion_queue_shutdown_type grpc_completion_queue_shutdown_import; |
| 238 | #define grpc_completion_queue_shutdown grpc_completion_queue_shutdown_import |
| 239 | typedef void(*grpc_completion_queue_destroy_type)(grpc_completion_queue *cq); |
| 240 | extern grpc_completion_queue_destroy_type grpc_completion_queue_destroy_import; |
| 241 | #define grpc_completion_queue_destroy grpc_completion_queue_destroy_import |
| 242 | typedef grpc_alarm *(*grpc_alarm_create_type)(grpc_completion_queue *cq, gpr_timespec deadline, void *tag); |
| 243 | extern grpc_alarm_create_type grpc_alarm_create_import; |
| 244 | #define grpc_alarm_create grpc_alarm_create_import |
| 245 | typedef void(*grpc_alarm_cancel_type)(grpc_alarm *alarm); |
| 246 | extern grpc_alarm_cancel_type grpc_alarm_cancel_import; |
| 247 | #define grpc_alarm_cancel grpc_alarm_cancel_import |
| 248 | typedef void(*grpc_alarm_destroy_type)(grpc_alarm *alarm); |
| 249 | extern grpc_alarm_destroy_type grpc_alarm_destroy_import; |
| 250 | #define grpc_alarm_destroy grpc_alarm_destroy_import |
| 251 | typedef grpc_connectivity_state(*grpc_channel_check_connectivity_state_type)(grpc_channel *channel, int try_to_connect); |
| 252 | extern grpc_channel_check_connectivity_state_type grpc_channel_check_connectivity_state_import; |
| 253 | #define grpc_channel_check_connectivity_state grpc_channel_check_connectivity_state_import |
| 254 | typedef void(*grpc_channel_watch_connectivity_state_type)(grpc_channel *channel, grpc_connectivity_state last_observed_state, gpr_timespec deadline, grpc_completion_queue *cq, void *tag); |
| 255 | extern grpc_channel_watch_connectivity_state_type grpc_channel_watch_connectivity_state_import; |
| 256 | #define grpc_channel_watch_connectivity_state grpc_channel_watch_connectivity_state_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 257 | typedef grpc_call *(*grpc_channel_create_call_type)(grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_completion_queue *completion_queue, grpc_slice method, const grpc_slice *host, gpr_timespec deadline, void *reserved); |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 258 | extern grpc_channel_create_call_type grpc_channel_create_call_import; |
| 259 | #define grpc_channel_create_call grpc_channel_create_call_import |
| 260 | typedef void(*grpc_channel_ping_type)(grpc_channel *channel, grpc_completion_queue *cq, void *tag, void *reserved); |
| 261 | extern grpc_channel_ping_type grpc_channel_ping_import; |
| 262 | #define grpc_channel_ping grpc_channel_ping_import |
| 263 | typedef void *(*grpc_channel_register_call_type)(grpc_channel *channel, const char *method, const char *host, void *reserved); |
| 264 | extern grpc_channel_register_call_type grpc_channel_register_call_import; |
| 265 | #define grpc_channel_register_call grpc_channel_register_call_import |
| 266 | typedef grpc_call *(*grpc_channel_create_registered_call_type)(grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_completion_queue *completion_queue, void *registered_call_handle, gpr_timespec deadline, void *reserved); |
| 267 | extern grpc_channel_create_registered_call_type grpc_channel_create_registered_call_import; |
| 268 | #define grpc_channel_create_registered_call grpc_channel_create_registered_call_import |
| 269 | typedef grpc_call_error(*grpc_call_start_batch_type)(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved); |
| 270 | extern grpc_call_start_batch_type grpc_call_start_batch_import; |
| 271 | #define grpc_call_start_batch grpc_call_start_batch_import |
| 272 | typedef char *(*grpc_call_get_peer_type)(grpc_call *call); |
| 273 | extern grpc_call_get_peer_type grpc_call_get_peer_import; |
| 274 | #define grpc_call_get_peer grpc_call_get_peer_import |
David Garcia Quintas | f31f096 | 2017-02-10 14:53:58 -0800 | [diff] [blame] | 275 | typedef void(*grpc_call_set_load_reporting_cost_context_type)(grpc_call *call, struct grpc_load_reporting_cost_context *context); |
| 276 | extern grpc_call_set_load_reporting_cost_context_type grpc_call_set_load_reporting_cost_context_import; |
| 277 | #define grpc_call_set_load_reporting_cost_context grpc_call_set_load_reporting_cost_context_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 278 | typedef void(*grpc_census_call_set_context_type)(grpc_call *call, struct census_context *context); |
| 279 | extern grpc_census_call_set_context_type grpc_census_call_set_context_import; |
| 280 | #define grpc_census_call_set_context grpc_census_call_set_context_import |
| 281 | typedef struct census_context *(*grpc_census_call_get_context_type)(grpc_call *call); |
| 282 | extern grpc_census_call_get_context_type grpc_census_call_get_context_import; |
| 283 | #define grpc_census_call_get_context grpc_census_call_get_context_import |
| 284 | typedef char *(*grpc_channel_get_target_type)(grpc_channel *channel); |
| 285 | extern grpc_channel_get_target_type grpc_channel_get_target_import; |
| 286 | #define grpc_channel_get_target grpc_channel_get_target_import |
Mark D. Roth | 8e2d8d9 | 2016-11-04 12:55:07 -0700 | [diff] [blame] | 287 | typedef void(*grpc_channel_get_info_type)(grpc_channel *channel, const grpc_channel_info *channel_info); |
| 288 | extern grpc_channel_get_info_type grpc_channel_get_info_import; |
| 289 | #define grpc_channel_get_info grpc_channel_get_info_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 290 | typedef grpc_channel *(*grpc_insecure_channel_create_type)(const char *target, const grpc_channel_args *args, void *reserved); |
| 291 | extern grpc_insecure_channel_create_type grpc_insecure_channel_create_import; |
| 292 | #define grpc_insecure_channel_create grpc_insecure_channel_create_import |
| 293 | typedef grpc_channel *(*grpc_lame_client_channel_create_type)(const char *target, grpc_status_code error_code, const char *error_message); |
| 294 | extern grpc_lame_client_channel_create_type grpc_lame_client_channel_create_import; |
| 295 | #define grpc_lame_client_channel_create grpc_lame_client_channel_create_import |
| 296 | typedef void(*grpc_channel_destroy_type)(grpc_channel *channel); |
| 297 | extern grpc_channel_destroy_type grpc_channel_destroy_import; |
| 298 | #define grpc_channel_destroy grpc_channel_destroy_import |
| 299 | typedef grpc_call_error(*grpc_call_cancel_type)(grpc_call *call, void *reserved); |
| 300 | extern grpc_call_cancel_type grpc_call_cancel_import; |
| 301 | #define grpc_call_cancel grpc_call_cancel_import |
| 302 | typedef grpc_call_error(*grpc_call_cancel_with_status_type)(grpc_call *call, grpc_status_code status, const char *description, void *reserved); |
| 303 | extern grpc_call_cancel_with_status_type grpc_call_cancel_with_status_import; |
| 304 | #define grpc_call_cancel_with_status grpc_call_cancel_with_status_import |
| 305 | typedef void(*grpc_call_destroy_type)(grpc_call *call); |
| 306 | extern grpc_call_destroy_type grpc_call_destroy_import; |
| 307 | #define grpc_call_destroy grpc_call_destroy_import |
| 308 | typedef grpc_call_error(*grpc_server_request_call_type)(grpc_server *server, grpc_call **call, grpc_call_details *details, grpc_metadata_array *request_metadata, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag_new); |
| 309 | extern grpc_server_request_call_type grpc_server_request_call_import; |
| 310 | #define grpc_server_request_call grpc_server_request_call_import |
Craig Tiller | 725aaf2 | 2016-04-04 10:11:23 -0700 | [diff] [blame] | 311 | typedef void *(*grpc_server_register_method_type)(grpc_server *server, const char *method, const char *host, grpc_server_register_method_payload_handling payload_handling, uint32_t flags); |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 312 | extern grpc_server_register_method_type grpc_server_register_method_import; |
| 313 | #define grpc_server_register_method grpc_server_register_method_import |
| 314 | typedef grpc_call_error(*grpc_server_request_registered_call_type)(grpc_server *server, void *registered_method, grpc_call **call, gpr_timespec *deadline, grpc_metadata_array *request_metadata, grpc_byte_buffer **optional_payload, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag_new); |
| 315 | extern grpc_server_request_registered_call_type grpc_server_request_registered_call_import; |
| 316 | #define grpc_server_request_registered_call grpc_server_request_registered_call_import |
| 317 | typedef grpc_server *(*grpc_server_create_type)(const grpc_channel_args *args, void *reserved); |
| 318 | extern grpc_server_create_type grpc_server_create_import; |
| 319 | #define grpc_server_create grpc_server_create_import |
| 320 | typedef void(*grpc_server_register_completion_queue_type)(grpc_server *server, grpc_completion_queue *cq, void *reserved); |
| 321 | extern grpc_server_register_completion_queue_type grpc_server_register_completion_queue_import; |
| 322 | #define grpc_server_register_completion_queue grpc_server_register_completion_queue_import |
Sree Kuchibhotla | 0190712 | 2016-04-21 15:09:13 -0700 | [diff] [blame] | 323 | typedef void(*grpc_server_register_non_listening_completion_queue_type)(grpc_server *server, grpc_completion_queue *q, void *reserved); |
| 324 | extern grpc_server_register_non_listening_completion_queue_type grpc_server_register_non_listening_completion_queue_import; |
| 325 | #define grpc_server_register_non_listening_completion_queue grpc_server_register_non_listening_completion_queue_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 326 | typedef int(*grpc_server_add_insecure_http2_port_type)(grpc_server *server, const char *addr); |
| 327 | extern grpc_server_add_insecure_http2_port_type grpc_server_add_insecure_http2_port_import; |
| 328 | #define grpc_server_add_insecure_http2_port grpc_server_add_insecure_http2_port_import |
| 329 | typedef void(*grpc_server_start_type)(grpc_server *server); |
| 330 | extern grpc_server_start_type grpc_server_start_import; |
| 331 | #define grpc_server_start grpc_server_start_import |
| 332 | typedef void(*grpc_server_shutdown_and_notify_type)(grpc_server *server, grpc_completion_queue *cq, void *tag); |
| 333 | extern grpc_server_shutdown_and_notify_type grpc_server_shutdown_and_notify_import; |
| 334 | #define grpc_server_shutdown_and_notify grpc_server_shutdown_and_notify_import |
| 335 | typedef void(*grpc_server_cancel_all_calls_type)(grpc_server *server); |
| 336 | extern grpc_server_cancel_all_calls_type grpc_server_cancel_all_calls_import; |
| 337 | #define grpc_server_cancel_all_calls grpc_server_cancel_all_calls_import |
| 338 | typedef void(*grpc_server_destroy_type)(grpc_server *server); |
| 339 | extern grpc_server_destroy_type grpc_server_destroy_import; |
| 340 | #define grpc_server_destroy grpc_server_destroy_import |
| 341 | typedef int(*grpc_tracer_set_enabled_type)(const char *name, int enabled); |
| 342 | extern grpc_tracer_set_enabled_type grpc_tracer_set_enabled_import; |
| 343 | #define grpc_tracer_set_enabled grpc_tracer_set_enabled_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 344 | typedef int(*grpc_header_key_is_legal_type)(grpc_slice slice); |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 345 | extern grpc_header_key_is_legal_type grpc_header_key_is_legal_import; |
| 346 | #define grpc_header_key_is_legal grpc_header_key_is_legal_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 347 | typedef int(*grpc_header_nonbin_value_is_legal_type)(grpc_slice slice); |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 348 | extern grpc_header_nonbin_value_is_legal_type grpc_header_nonbin_value_is_legal_import; |
| 349 | #define grpc_header_nonbin_value_is_legal grpc_header_nonbin_value_is_legal_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 350 | typedef int(*grpc_is_binary_header_type)(grpc_slice slice); |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 351 | extern grpc_is_binary_header_type grpc_is_binary_header_import; |
| 352 | #define grpc_is_binary_header grpc_is_binary_header_import |
Yuchen Zeng | 2e7d957 | 2016-04-15 17:29:57 -0700 | [diff] [blame] | 353 | typedef const char *(*grpc_call_error_to_string_type)(grpc_call_error error); |
| 354 | extern grpc_call_error_to_string_type grpc_call_error_to_string_import; |
| 355 | #define grpc_call_error_to_string grpc_call_error_to_string_import |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 356 | typedef grpc_resource_quota *(*grpc_resource_quota_create_type)(const char *trace_name); |
| 357 | extern grpc_resource_quota_create_type grpc_resource_quota_create_import; |
| 358 | #define grpc_resource_quota_create grpc_resource_quota_create_import |
| 359 | typedef void(*grpc_resource_quota_ref_type)(grpc_resource_quota *resource_quota); |
| 360 | extern grpc_resource_quota_ref_type grpc_resource_quota_ref_import; |
| 361 | #define grpc_resource_quota_ref grpc_resource_quota_ref_import |
| 362 | typedef void(*grpc_resource_quota_unref_type)(grpc_resource_quota *resource_quota); |
| 363 | extern grpc_resource_quota_unref_type grpc_resource_quota_unref_import; |
| 364 | #define grpc_resource_quota_unref grpc_resource_quota_unref_import |
| 365 | typedef void(*grpc_resource_quota_resize_type)(grpc_resource_quota *resource_quota, size_t new_size); |
| 366 | extern grpc_resource_quota_resize_type grpc_resource_quota_resize_import; |
| 367 | #define grpc_resource_quota_resize grpc_resource_quota_resize_import |
| 368 | typedef const grpc_arg_pointer_vtable *(*grpc_resource_quota_arg_vtable_type)(void); |
| 369 | extern grpc_resource_quota_arg_vtable_type grpc_resource_quota_arg_vtable_import; |
| 370 | #define grpc_resource_quota_arg_vtable grpc_resource_quota_arg_vtable_import |
Adam Michalik | 321b1fb | 2016-05-16 15:42:36 -0700 | [diff] [blame] | 371 | typedef grpc_channel *(*grpc_insecure_channel_create_from_fd_type)(const char *target, int fd, const grpc_channel_args *args); |
| 372 | extern grpc_insecure_channel_create_from_fd_type grpc_insecure_channel_create_from_fd_import; |
| 373 | #define grpc_insecure_channel_create_from_fd grpc_insecure_channel_create_from_fd_import |
Sree Kuchibhotla | cc357bf | 2016-08-22 16:08:50 -0700 | [diff] [blame] | 374 | typedef void(*grpc_server_add_insecure_channel_from_fd_type)(grpc_server *server, void *reserved, int fd); |
Adam Michalik | bf10c82 | 2016-05-20 16:13:32 -0700 | [diff] [blame] | 375 | extern grpc_server_add_insecure_channel_from_fd_type grpc_server_add_insecure_channel_from_fd_import; |
| 376 | #define grpc_server_add_insecure_channel_from_fd grpc_server_add_insecure_channel_from_fd_import |
Sree Kuchibhotla | 492fd96 | 2016-06-10 09:03:34 -0700 | [diff] [blame] | 377 | typedef void(*grpc_use_signal_type)(int signum); |
| 378 | extern grpc_use_signal_type grpc_use_signal_import; |
| 379 | #define grpc_use_signal grpc_use_signal_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 380 | typedef const grpc_auth_property *(*grpc_auth_property_iterator_next_type)(grpc_auth_property_iterator *it); |
| 381 | extern grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import; |
| 382 | #define grpc_auth_property_iterator_next grpc_auth_property_iterator_next_import |
| 383 | typedef grpc_auth_property_iterator(*grpc_auth_context_property_iterator_type)(const grpc_auth_context *ctx); |
| 384 | extern grpc_auth_context_property_iterator_type grpc_auth_context_property_iterator_import; |
| 385 | #define grpc_auth_context_property_iterator grpc_auth_context_property_iterator_import |
| 386 | typedef grpc_auth_property_iterator(*grpc_auth_context_peer_identity_type)(const grpc_auth_context *ctx); |
| 387 | extern grpc_auth_context_peer_identity_type grpc_auth_context_peer_identity_import; |
| 388 | #define grpc_auth_context_peer_identity grpc_auth_context_peer_identity_import |
| 389 | typedef grpc_auth_property_iterator(*grpc_auth_context_find_properties_by_name_type)(const grpc_auth_context *ctx, const char *name); |
| 390 | extern grpc_auth_context_find_properties_by_name_type grpc_auth_context_find_properties_by_name_import; |
| 391 | #define grpc_auth_context_find_properties_by_name grpc_auth_context_find_properties_by_name_import |
| 392 | typedef const char *(*grpc_auth_context_peer_identity_property_name_type)(const grpc_auth_context *ctx); |
| 393 | extern grpc_auth_context_peer_identity_property_name_type grpc_auth_context_peer_identity_property_name_import; |
| 394 | #define grpc_auth_context_peer_identity_property_name grpc_auth_context_peer_identity_property_name_import |
| 395 | typedef int(*grpc_auth_context_peer_is_authenticated_type)(const grpc_auth_context *ctx); |
| 396 | extern grpc_auth_context_peer_is_authenticated_type grpc_auth_context_peer_is_authenticated_import; |
| 397 | #define grpc_auth_context_peer_is_authenticated grpc_auth_context_peer_is_authenticated_import |
| 398 | typedef grpc_auth_context *(*grpc_call_auth_context_type)(grpc_call *call); |
| 399 | extern grpc_call_auth_context_type grpc_call_auth_context_import; |
| 400 | #define grpc_call_auth_context grpc_call_auth_context_import |
| 401 | typedef void(*grpc_auth_context_release_type)(grpc_auth_context *context); |
| 402 | extern grpc_auth_context_release_type grpc_auth_context_release_import; |
| 403 | #define grpc_auth_context_release grpc_auth_context_release_import |
| 404 | typedef void(*grpc_auth_context_add_property_type)(grpc_auth_context *ctx, const char *name, const char *value, size_t value_length); |
| 405 | extern grpc_auth_context_add_property_type grpc_auth_context_add_property_import; |
| 406 | #define grpc_auth_context_add_property grpc_auth_context_add_property_import |
| 407 | typedef void(*grpc_auth_context_add_cstring_property_type)(grpc_auth_context *ctx, const char *name, const char *value); |
| 408 | extern grpc_auth_context_add_cstring_property_type grpc_auth_context_add_cstring_property_import; |
| 409 | #define grpc_auth_context_add_cstring_property grpc_auth_context_add_cstring_property_import |
| 410 | typedef int(*grpc_auth_context_set_peer_identity_property_name_type)(grpc_auth_context *ctx, const char *name); |
| 411 | extern grpc_auth_context_set_peer_identity_property_name_type grpc_auth_context_set_peer_identity_property_name_import; |
| 412 | #define grpc_auth_context_set_peer_identity_property_name grpc_auth_context_set_peer_identity_property_name_import |
| 413 | typedef void(*grpc_channel_credentials_release_type)(grpc_channel_credentials *creds); |
| 414 | extern grpc_channel_credentials_release_type grpc_channel_credentials_release_import; |
| 415 | #define grpc_channel_credentials_release grpc_channel_credentials_release_import |
| 416 | typedef grpc_channel_credentials *(*grpc_google_default_credentials_create_type)(void); |
| 417 | extern grpc_google_default_credentials_create_type grpc_google_default_credentials_create_import; |
| 418 | #define grpc_google_default_credentials_create grpc_google_default_credentials_create_import |
Nicolas "Pixel" Noble | 6397660 | 2016-02-17 23:43:55 +0100 | [diff] [blame] | 419 | typedef void(*grpc_set_ssl_roots_override_callback_type)(grpc_ssl_roots_override_callback cb); |
| 420 | extern grpc_set_ssl_roots_override_callback_type grpc_set_ssl_roots_override_callback_import; |
| 421 | #define grpc_set_ssl_roots_override_callback grpc_set_ssl_roots_override_callback_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 422 | typedef grpc_channel_credentials *(*grpc_ssl_credentials_create_type)(const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pair, void *reserved); |
| 423 | extern grpc_ssl_credentials_create_type grpc_ssl_credentials_create_import; |
| 424 | #define grpc_ssl_credentials_create grpc_ssl_credentials_create_import |
| 425 | typedef void(*grpc_call_credentials_release_type)(grpc_call_credentials *creds); |
| 426 | extern grpc_call_credentials_release_type grpc_call_credentials_release_import; |
| 427 | #define grpc_call_credentials_release grpc_call_credentials_release_import |
| 428 | typedef grpc_channel_credentials *(*grpc_composite_channel_credentials_create_type)(grpc_channel_credentials *channel_creds, grpc_call_credentials *call_creds, void *reserved); |
| 429 | extern grpc_composite_channel_credentials_create_type grpc_composite_channel_credentials_create_import; |
| 430 | #define grpc_composite_channel_credentials_create grpc_composite_channel_credentials_create_import |
| 431 | typedef grpc_call_credentials *(*grpc_composite_call_credentials_create_type)(grpc_call_credentials *creds1, grpc_call_credentials *creds2, void *reserved); |
| 432 | extern grpc_composite_call_credentials_create_type grpc_composite_call_credentials_create_import; |
| 433 | #define grpc_composite_call_credentials_create grpc_composite_call_credentials_create_import |
| 434 | typedef grpc_call_credentials *(*grpc_google_compute_engine_credentials_create_type)(void *reserved); |
| 435 | extern grpc_google_compute_engine_credentials_create_type grpc_google_compute_engine_credentials_create_import; |
| 436 | #define grpc_google_compute_engine_credentials_create grpc_google_compute_engine_credentials_create_import |
Nicolas "Pixel" Noble | d2f20ef | 2016-01-31 07:52:59 +0100 | [diff] [blame] | 437 | typedef gpr_timespec(*grpc_max_auth_token_lifetime_type)(); |
| 438 | extern grpc_max_auth_token_lifetime_type grpc_max_auth_token_lifetime_import; |
| 439 | #define grpc_max_auth_token_lifetime grpc_max_auth_token_lifetime_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 440 | typedef grpc_call_credentials *(*grpc_service_account_jwt_access_credentials_create_type)(const char *json_key, gpr_timespec token_lifetime, void *reserved); |
| 441 | extern grpc_service_account_jwt_access_credentials_create_type grpc_service_account_jwt_access_credentials_create_import; |
| 442 | #define grpc_service_account_jwt_access_credentials_create grpc_service_account_jwt_access_credentials_create_import |
| 443 | typedef grpc_call_credentials *(*grpc_google_refresh_token_credentials_create_type)(const char *json_refresh_token, void *reserved); |
| 444 | extern grpc_google_refresh_token_credentials_create_type grpc_google_refresh_token_credentials_create_import; |
| 445 | #define grpc_google_refresh_token_credentials_create grpc_google_refresh_token_credentials_create_import |
| 446 | typedef grpc_call_credentials *(*grpc_access_token_credentials_create_type)(const char *access_token, void *reserved); |
| 447 | extern grpc_access_token_credentials_create_type grpc_access_token_credentials_create_import; |
| 448 | #define grpc_access_token_credentials_create grpc_access_token_credentials_create_import |
| 449 | typedef grpc_call_credentials *(*grpc_google_iam_credentials_create_type)(const char *authorization_token, const char *authority_selector, void *reserved); |
| 450 | extern grpc_google_iam_credentials_create_type grpc_google_iam_credentials_create_import; |
| 451 | #define grpc_google_iam_credentials_create grpc_google_iam_credentials_create_import |
| 452 | typedef grpc_call_credentials *(*grpc_metadata_credentials_create_from_plugin_type)(grpc_metadata_credentials_plugin plugin, void *reserved); |
| 453 | extern grpc_metadata_credentials_create_from_plugin_type grpc_metadata_credentials_create_from_plugin_import; |
| 454 | #define grpc_metadata_credentials_create_from_plugin grpc_metadata_credentials_create_from_plugin_import |
| 455 | typedef grpc_channel *(*grpc_secure_channel_create_type)(grpc_channel_credentials *creds, const char *target, const grpc_channel_args *args, void *reserved); |
| 456 | extern grpc_secure_channel_create_type grpc_secure_channel_create_import; |
| 457 | #define grpc_secure_channel_create grpc_secure_channel_create_import |
| 458 | typedef void(*grpc_server_credentials_release_type)(grpc_server_credentials *creds); |
| 459 | extern grpc_server_credentials_release_type grpc_server_credentials_release_import; |
| 460 | #define grpc_server_credentials_release grpc_server_credentials_release_import |
| 461 | typedef grpc_server_credentials *(*grpc_ssl_server_credentials_create_type)(const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pairs, size_t num_key_cert_pairs, int force_client_auth, void *reserved); |
| 462 | extern grpc_ssl_server_credentials_create_type grpc_ssl_server_credentials_create_import; |
| 463 | #define grpc_ssl_server_credentials_create grpc_ssl_server_credentials_create_import |
Deepak Lukose | dba4c5f | 2016-03-25 12:54:25 -0700 | [diff] [blame] | 464 | typedef grpc_server_credentials *(*grpc_ssl_server_credentials_create_ex_type)(const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pairs, size_t num_key_cert_pairs, grpc_ssl_client_certificate_request_type client_certificate_request, void *reserved); |
| 465 | extern grpc_ssl_server_credentials_create_ex_type grpc_ssl_server_credentials_create_ex_import; |
| 466 | #define grpc_ssl_server_credentials_create_ex grpc_ssl_server_credentials_create_ex_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 467 | typedef int(*grpc_server_add_secure_http2_port_type)(grpc_server *server, const char *addr, grpc_server_credentials *creds); |
| 468 | extern grpc_server_add_secure_http2_port_type grpc_server_add_secure_http2_port_import; |
| 469 | #define grpc_server_add_secure_http2_port grpc_server_add_secure_http2_port_import |
| 470 | typedef grpc_call_error(*grpc_call_set_credentials_type)(grpc_call *call, grpc_call_credentials *creds); |
| 471 | extern grpc_call_set_credentials_type grpc_call_set_credentials_import; |
| 472 | #define grpc_call_set_credentials grpc_call_set_credentials_import |
| 473 | typedef void(*grpc_server_credentials_set_auth_metadata_processor_type)(grpc_server_credentials *creds, grpc_auth_metadata_processor processor); |
| 474 | extern grpc_server_credentials_set_auth_metadata_processor_type grpc_server_credentials_set_auth_metadata_processor_import; |
| 475 | #define grpc_server_credentials_set_auth_metadata_processor grpc_server_credentials_set_auth_metadata_processor_import |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 476 | typedef grpc_slice(*grpc_slice_ref_type)(grpc_slice s); |
| 477 | extern grpc_slice_ref_type grpc_slice_ref_import; |
| 478 | #define grpc_slice_ref grpc_slice_ref_import |
| 479 | typedef void(*grpc_slice_unref_type)(grpc_slice s); |
| 480 | extern grpc_slice_unref_type grpc_slice_unref_import; |
| 481 | #define grpc_slice_unref grpc_slice_unref_import |
| 482 | typedef grpc_slice(*grpc_slice_new_type)(void *p, size_t len, void (*destroy)(void *)); |
| 483 | extern grpc_slice_new_type grpc_slice_new_import; |
| 484 | #define grpc_slice_new grpc_slice_new_import |
| 485 | typedef grpc_slice(*grpc_slice_new_with_user_data_type)(void *p, size_t len, void (*destroy)(void *), void *user_data); |
| 486 | extern grpc_slice_new_with_user_data_type grpc_slice_new_with_user_data_import; |
| 487 | #define grpc_slice_new_with_user_data grpc_slice_new_with_user_data_import |
| 488 | typedef grpc_slice(*grpc_slice_new_with_len_type)(void *p, size_t len, void (*destroy)(void *, size_t)); |
| 489 | extern grpc_slice_new_with_len_type grpc_slice_new_with_len_import; |
| 490 | #define grpc_slice_new_with_len grpc_slice_new_with_len_import |
| 491 | typedef grpc_slice(*grpc_slice_malloc_type)(size_t length); |
| 492 | extern grpc_slice_malloc_type grpc_slice_malloc_import; |
| 493 | #define grpc_slice_malloc grpc_slice_malloc_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 494 | typedef grpc_slice(*grpc_slice_intern_type)(grpc_slice slice); |
| 495 | extern grpc_slice_intern_type grpc_slice_intern_import; |
| 496 | #define grpc_slice_intern grpc_slice_intern_import |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 497 | typedef grpc_slice(*grpc_slice_from_copied_string_type)(const char *source); |
| 498 | extern grpc_slice_from_copied_string_type grpc_slice_from_copied_string_import; |
| 499 | #define grpc_slice_from_copied_string grpc_slice_from_copied_string_import |
| 500 | typedef grpc_slice(*grpc_slice_from_copied_buffer_type)(const char *source, size_t len); |
| 501 | extern grpc_slice_from_copied_buffer_type grpc_slice_from_copied_buffer_import; |
| 502 | #define grpc_slice_from_copied_buffer grpc_slice_from_copied_buffer_import |
| 503 | typedef grpc_slice(*grpc_slice_from_static_string_type)(const char *source); |
| 504 | extern grpc_slice_from_static_string_type grpc_slice_from_static_string_import; |
| 505 | #define grpc_slice_from_static_string grpc_slice_from_static_string_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 506 | typedef grpc_slice(*grpc_slice_from_static_buffer_type)(const void *source, size_t len); |
| 507 | extern grpc_slice_from_static_buffer_type grpc_slice_from_static_buffer_import; |
| 508 | #define grpc_slice_from_static_buffer grpc_slice_from_static_buffer_import |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 509 | typedef grpc_slice(*grpc_slice_sub_type)(grpc_slice s, size_t begin, size_t end); |
| 510 | extern grpc_slice_sub_type grpc_slice_sub_import; |
| 511 | #define grpc_slice_sub grpc_slice_sub_import |
| 512 | typedef grpc_slice(*grpc_slice_sub_no_ref_type)(grpc_slice s, size_t begin, size_t end); |
| 513 | extern grpc_slice_sub_no_ref_type grpc_slice_sub_no_ref_import; |
| 514 | #define grpc_slice_sub_no_ref grpc_slice_sub_no_ref_import |
| 515 | typedef grpc_slice(*grpc_slice_split_tail_type)(grpc_slice *s, size_t split); |
| 516 | extern grpc_slice_split_tail_type grpc_slice_split_tail_import; |
| 517 | #define grpc_slice_split_tail grpc_slice_split_tail_import |
| 518 | typedef grpc_slice(*grpc_slice_split_head_type)(grpc_slice *s, size_t split); |
| 519 | extern grpc_slice_split_head_type grpc_slice_split_head_import; |
| 520 | #define grpc_slice_split_head grpc_slice_split_head_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 521 | typedef grpc_slice(*grpc_empty_slice_type)(void); |
| 522 | extern grpc_empty_slice_type grpc_empty_slice_import; |
| 523 | #define grpc_empty_slice grpc_empty_slice_import |
| 524 | typedef uint32_t(*grpc_slice_default_hash_impl_type)(grpc_slice s); |
| 525 | extern grpc_slice_default_hash_impl_type grpc_slice_default_hash_impl_import; |
| 526 | #define grpc_slice_default_hash_impl grpc_slice_default_hash_impl_import |
| 527 | typedef int(*grpc_slice_default_eq_impl_type)(grpc_slice a, grpc_slice b); |
| 528 | extern grpc_slice_default_eq_impl_type grpc_slice_default_eq_impl_import; |
| 529 | #define grpc_slice_default_eq_impl grpc_slice_default_eq_impl_import |
| 530 | typedef int(*grpc_slice_eq_type)(grpc_slice a, grpc_slice b); |
| 531 | extern grpc_slice_eq_type grpc_slice_eq_import; |
| 532 | #define grpc_slice_eq grpc_slice_eq_import |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 533 | typedef int(*grpc_slice_cmp_type)(grpc_slice a, grpc_slice b); |
| 534 | extern grpc_slice_cmp_type grpc_slice_cmp_import; |
| 535 | #define grpc_slice_cmp grpc_slice_cmp_import |
| 536 | typedef int(*grpc_slice_str_cmp_type)(grpc_slice a, const char *b); |
| 537 | extern grpc_slice_str_cmp_type grpc_slice_str_cmp_import; |
| 538 | #define grpc_slice_str_cmp grpc_slice_str_cmp_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 539 | typedef int(*grpc_slice_buf_cmp_type)(grpc_slice a, const void *b, size_t blen); |
| 540 | extern grpc_slice_buf_cmp_type grpc_slice_buf_cmp_import; |
| 541 | #define grpc_slice_buf_cmp grpc_slice_buf_cmp_import |
| 542 | typedef int(*grpc_slice_buf_start_eq_type)(grpc_slice a, const void *b, size_t blen); |
| 543 | extern grpc_slice_buf_start_eq_type grpc_slice_buf_start_eq_import; |
| 544 | #define grpc_slice_buf_start_eq grpc_slice_buf_start_eq_import |
| 545 | typedef int(*grpc_slice_rchr_type)(grpc_slice s, char c); |
| 546 | extern grpc_slice_rchr_type grpc_slice_rchr_import; |
| 547 | #define grpc_slice_rchr grpc_slice_rchr_import |
| 548 | typedef int(*grpc_slice_chr_type)(grpc_slice s, char c); |
| 549 | extern grpc_slice_chr_type grpc_slice_chr_import; |
| 550 | #define grpc_slice_chr grpc_slice_chr_import |
| 551 | typedef int(*grpc_slice_slice_type)(grpc_slice haystack, grpc_slice needle); |
| 552 | extern grpc_slice_slice_type grpc_slice_slice_import; |
| 553 | #define grpc_slice_slice grpc_slice_slice_import |
| 554 | typedef uint32_t(*grpc_slice_hash_type)(grpc_slice s); |
| 555 | extern grpc_slice_hash_type grpc_slice_hash_import; |
| 556 | #define grpc_slice_hash grpc_slice_hash_import |
Craig Tiller | c586666 | 2016-11-16 15:25:00 -0800 | [diff] [blame] | 557 | typedef int(*grpc_slice_is_equivalent_type)(grpc_slice a, grpc_slice b); |
| 558 | extern grpc_slice_is_equivalent_type grpc_slice_is_equivalent_import; |
| 559 | #define grpc_slice_is_equivalent grpc_slice_is_equivalent_import |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 560 | typedef grpc_slice(*grpc_slice_dup_type)(grpc_slice a); |
| 561 | extern grpc_slice_dup_type grpc_slice_dup_import; |
| 562 | #define grpc_slice_dup grpc_slice_dup_import |
| 563 | typedef char *(*grpc_slice_to_c_string_type)(grpc_slice s); |
| 564 | extern grpc_slice_to_c_string_type grpc_slice_to_c_string_import; |
| 565 | #define grpc_slice_to_c_string grpc_slice_to_c_string_import |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 566 | typedef void(*grpc_slice_buffer_init_type)(grpc_slice_buffer *sb); |
| 567 | extern grpc_slice_buffer_init_type grpc_slice_buffer_init_import; |
| 568 | #define grpc_slice_buffer_init grpc_slice_buffer_init_import |
| 569 | typedef void(*grpc_slice_buffer_destroy_type)(grpc_slice_buffer *sb); |
| 570 | extern grpc_slice_buffer_destroy_type grpc_slice_buffer_destroy_import; |
| 571 | #define grpc_slice_buffer_destroy grpc_slice_buffer_destroy_import |
| 572 | typedef void(*grpc_slice_buffer_add_type)(grpc_slice_buffer *sb, grpc_slice slice); |
| 573 | extern grpc_slice_buffer_add_type grpc_slice_buffer_add_import; |
| 574 | #define grpc_slice_buffer_add grpc_slice_buffer_add_import |
| 575 | typedef size_t(*grpc_slice_buffer_add_indexed_type)(grpc_slice_buffer *sb, grpc_slice slice); |
| 576 | extern grpc_slice_buffer_add_indexed_type grpc_slice_buffer_add_indexed_import; |
| 577 | #define grpc_slice_buffer_add_indexed grpc_slice_buffer_add_indexed_import |
| 578 | typedef void(*grpc_slice_buffer_addn_type)(grpc_slice_buffer *sb, grpc_slice *slices, size_t n); |
| 579 | extern grpc_slice_buffer_addn_type grpc_slice_buffer_addn_import; |
| 580 | #define grpc_slice_buffer_addn grpc_slice_buffer_addn_import |
| 581 | typedef uint8_t *(*grpc_slice_buffer_tiny_add_type)(grpc_slice_buffer *sb, size_t len); |
| 582 | extern grpc_slice_buffer_tiny_add_type grpc_slice_buffer_tiny_add_import; |
| 583 | #define grpc_slice_buffer_tiny_add grpc_slice_buffer_tiny_add_import |
| 584 | typedef void(*grpc_slice_buffer_pop_type)(grpc_slice_buffer *sb); |
| 585 | extern grpc_slice_buffer_pop_type grpc_slice_buffer_pop_import; |
| 586 | #define grpc_slice_buffer_pop grpc_slice_buffer_pop_import |
| 587 | typedef void(*grpc_slice_buffer_reset_and_unref_type)(grpc_slice_buffer *sb); |
| 588 | extern grpc_slice_buffer_reset_and_unref_type grpc_slice_buffer_reset_and_unref_import; |
| 589 | #define grpc_slice_buffer_reset_and_unref grpc_slice_buffer_reset_and_unref_import |
| 590 | typedef void(*grpc_slice_buffer_swap_type)(grpc_slice_buffer *a, grpc_slice_buffer *b); |
| 591 | extern grpc_slice_buffer_swap_type grpc_slice_buffer_swap_import; |
| 592 | #define grpc_slice_buffer_swap grpc_slice_buffer_swap_import |
| 593 | typedef void(*grpc_slice_buffer_move_into_type)(grpc_slice_buffer *src, grpc_slice_buffer *dst); |
| 594 | extern grpc_slice_buffer_move_into_type grpc_slice_buffer_move_into_import; |
| 595 | #define grpc_slice_buffer_move_into grpc_slice_buffer_move_into_import |
| 596 | typedef void(*grpc_slice_buffer_trim_end_type)(grpc_slice_buffer *src, size_t n, grpc_slice_buffer *garbage); |
| 597 | extern grpc_slice_buffer_trim_end_type grpc_slice_buffer_trim_end_import; |
| 598 | #define grpc_slice_buffer_trim_end grpc_slice_buffer_trim_end_import |
| 599 | typedef void(*grpc_slice_buffer_move_first_type)(grpc_slice_buffer *src, size_t n, grpc_slice_buffer *dst); |
| 600 | extern grpc_slice_buffer_move_first_type grpc_slice_buffer_move_first_import; |
| 601 | #define grpc_slice_buffer_move_first grpc_slice_buffer_move_first_import |
Craig Tiller | 1a56a93 | 2017-01-23 14:55:15 -0800 | [diff] [blame] | 602 | typedef void(*grpc_slice_buffer_move_first_into_buffer_type)(grpc_exec_ctx *exec_ctx, grpc_slice_buffer *src, size_t n, void *dst); |
Craig Tiller | 0cf6a71 | 2017-01-20 14:07:05 -0800 | [diff] [blame] | 603 | extern grpc_slice_buffer_move_first_into_buffer_type grpc_slice_buffer_move_first_into_buffer_import; |
| 604 | #define grpc_slice_buffer_move_first_into_buffer grpc_slice_buffer_move_first_into_buffer_import |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 605 | typedef grpc_slice(*grpc_slice_buffer_take_first_type)(grpc_slice_buffer *src); |
| 606 | extern grpc_slice_buffer_take_first_type grpc_slice_buffer_take_first_import; |
| 607 | #define grpc_slice_buffer_take_first grpc_slice_buffer_take_first_import |
Craig Tiller | 0cf6a71 | 2017-01-20 14:07:05 -0800 | [diff] [blame] | 608 | typedef void(*grpc_slice_buffer_undo_take_first_type)(grpc_slice_buffer *src, grpc_slice slice); |
| 609 | extern grpc_slice_buffer_undo_take_first_type grpc_slice_buffer_undo_take_first_import; |
| 610 | #define grpc_slice_buffer_undo_take_first grpc_slice_buffer_undo_take_first_import |
David Garcia Quintas | 3b31fdf | 2016-07-27 18:17:12 -0700 | [diff] [blame] | 611 | typedef void *(*gpr_malloc_type)(size_t size); |
| 612 | extern gpr_malloc_type gpr_malloc_import; |
| 613 | #define gpr_malloc gpr_malloc_import |
Craig Tiller | ff71449 | 2017-02-17 09:02:18 -0800 | [diff] [blame] | 614 | typedef void *(*gpr_zalloc_type)(size_t size); |
| 615 | extern gpr_zalloc_type gpr_zalloc_import; |
| 616 | #define gpr_zalloc gpr_zalloc_import |
David Garcia Quintas | 3b31fdf | 2016-07-27 18:17:12 -0700 | [diff] [blame] | 617 | typedef void(*gpr_free_type)(void *ptr); |
| 618 | extern gpr_free_type gpr_free_import; |
| 619 | #define gpr_free gpr_free_import |
| 620 | typedef void *(*gpr_realloc_type)(void *p, size_t size); |
| 621 | extern gpr_realloc_type gpr_realloc_import; |
| 622 | #define gpr_realloc gpr_realloc_import |
| 623 | typedef void *(*gpr_malloc_aligned_type)(size_t size, size_t alignment_log); |
| 624 | extern gpr_malloc_aligned_type gpr_malloc_aligned_import; |
| 625 | #define gpr_malloc_aligned gpr_malloc_aligned_import |
| 626 | typedef void(*gpr_free_aligned_type)(void *ptr); |
| 627 | extern gpr_free_aligned_type gpr_free_aligned_import; |
| 628 | #define gpr_free_aligned gpr_free_aligned_import |
| 629 | typedef void(*gpr_set_allocation_functions_type)(gpr_allocation_functions functions); |
| 630 | extern gpr_set_allocation_functions_type gpr_set_allocation_functions_import; |
| 631 | #define gpr_set_allocation_functions gpr_set_allocation_functions_import |
| 632 | typedef gpr_allocation_functions(*gpr_get_allocation_functions_type)(); |
| 633 | extern gpr_get_allocation_functions_type gpr_get_allocation_functions_import; |
| 634 | #define gpr_get_allocation_functions gpr_get_allocation_functions_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 635 | typedef gpr_avl(*gpr_avl_create_type)(const gpr_avl_vtable *vtable); |
| 636 | extern gpr_avl_create_type gpr_avl_create_import; |
| 637 | #define gpr_avl_create gpr_avl_create_import |
| 638 | typedef gpr_avl(*gpr_avl_ref_type)(gpr_avl avl); |
| 639 | extern gpr_avl_ref_type gpr_avl_ref_import; |
| 640 | #define gpr_avl_ref gpr_avl_ref_import |
| 641 | typedef void(*gpr_avl_unref_type)(gpr_avl avl); |
| 642 | extern gpr_avl_unref_type gpr_avl_unref_import; |
| 643 | #define gpr_avl_unref gpr_avl_unref_import |
| 644 | typedef gpr_avl(*gpr_avl_add_type)(gpr_avl avl, void *key, void *value); |
| 645 | extern gpr_avl_add_type gpr_avl_add_import; |
| 646 | #define gpr_avl_add gpr_avl_add_import |
| 647 | typedef gpr_avl(*gpr_avl_remove_type)(gpr_avl avl, void *key); |
| 648 | extern gpr_avl_remove_type gpr_avl_remove_import; |
| 649 | #define gpr_avl_remove gpr_avl_remove_import |
| 650 | typedef void *(*gpr_avl_get_type)(gpr_avl avl, void *key); |
| 651 | extern gpr_avl_get_type gpr_avl_get_import; |
| 652 | #define gpr_avl_get gpr_avl_get_import |
Craig Tiller | d6a5b80 | 2016-05-13 20:17:38 -0700 | [diff] [blame] | 653 | typedef int(*gpr_avl_maybe_get_type)(gpr_avl avl, void *key, void **value); |
| 654 | extern gpr_avl_maybe_get_type gpr_avl_maybe_get_import; |
| 655 | #define gpr_avl_maybe_get gpr_avl_maybe_get_import |
| 656 | typedef int(*gpr_avl_is_empty_type)(gpr_avl avl); |
| 657 | extern gpr_avl_is_empty_type gpr_avl_is_empty_import; |
| 658 | #define gpr_avl_is_empty gpr_avl_is_empty_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 659 | typedef gpr_cmdline *(*gpr_cmdline_create_type)(const char *description); |
| 660 | extern gpr_cmdline_create_type gpr_cmdline_create_import; |
| 661 | #define gpr_cmdline_create gpr_cmdline_create_import |
| 662 | typedef void(*gpr_cmdline_add_int_type)(gpr_cmdline *cl, const char *name, const char *help, int *value); |
| 663 | extern gpr_cmdline_add_int_type gpr_cmdline_add_int_import; |
| 664 | #define gpr_cmdline_add_int gpr_cmdline_add_int_import |
| 665 | typedef void(*gpr_cmdline_add_flag_type)(gpr_cmdline *cl, const char *name, const char *help, int *value); |
| 666 | extern gpr_cmdline_add_flag_type gpr_cmdline_add_flag_import; |
| 667 | #define gpr_cmdline_add_flag gpr_cmdline_add_flag_import |
| 668 | typedef void(*gpr_cmdline_add_string_type)(gpr_cmdline *cl, const char *name, const char *help, char **value); |
| 669 | extern gpr_cmdline_add_string_type gpr_cmdline_add_string_import; |
| 670 | #define gpr_cmdline_add_string gpr_cmdline_add_string_import |
| 671 | typedef void(*gpr_cmdline_on_extra_arg_type)(gpr_cmdline *cl, const char *name, const char *help, void (*on_extra_arg)(void *user_data, const char *arg), void *user_data); |
| 672 | extern gpr_cmdline_on_extra_arg_type gpr_cmdline_on_extra_arg_import; |
| 673 | #define gpr_cmdline_on_extra_arg gpr_cmdline_on_extra_arg_import |
| 674 | typedef void(*gpr_cmdline_set_survive_failure_type)(gpr_cmdline *cl); |
| 675 | extern gpr_cmdline_set_survive_failure_type gpr_cmdline_set_survive_failure_import; |
| 676 | #define gpr_cmdline_set_survive_failure gpr_cmdline_set_survive_failure_import |
| 677 | typedef int(*gpr_cmdline_parse_type)(gpr_cmdline *cl, int argc, char **argv); |
| 678 | extern gpr_cmdline_parse_type gpr_cmdline_parse_import; |
| 679 | #define gpr_cmdline_parse gpr_cmdline_parse_import |
| 680 | typedef void(*gpr_cmdline_destroy_type)(gpr_cmdline *cl); |
| 681 | extern gpr_cmdline_destroy_type gpr_cmdline_destroy_import; |
| 682 | #define gpr_cmdline_destroy gpr_cmdline_destroy_import |
| 683 | typedef char *(*gpr_cmdline_usage_string_type)(gpr_cmdline *cl, const char *argv0); |
| 684 | extern gpr_cmdline_usage_string_type gpr_cmdline_usage_string_import; |
| 685 | #define gpr_cmdline_usage_string gpr_cmdline_usage_string_import |
| 686 | typedef unsigned(*gpr_cpu_num_cores_type)(void); |
| 687 | extern gpr_cpu_num_cores_type gpr_cpu_num_cores_import; |
| 688 | #define gpr_cpu_num_cores gpr_cpu_num_cores_import |
| 689 | typedef unsigned(*gpr_cpu_current_cpu_type)(void); |
| 690 | extern gpr_cpu_current_cpu_type gpr_cpu_current_cpu_import; |
| 691 | #define gpr_cpu_current_cpu gpr_cpu_current_cpu_import |
| 692 | typedef gpr_histogram *(*gpr_histogram_create_type)(double resolution, double max_bucket_start); |
| 693 | extern gpr_histogram_create_type gpr_histogram_create_import; |
| 694 | #define gpr_histogram_create gpr_histogram_create_import |
| 695 | typedef void(*gpr_histogram_destroy_type)(gpr_histogram *h); |
| 696 | extern gpr_histogram_destroy_type gpr_histogram_destroy_import; |
| 697 | #define gpr_histogram_destroy gpr_histogram_destroy_import |
| 698 | typedef void(*gpr_histogram_add_type)(gpr_histogram *h, double x); |
| 699 | extern gpr_histogram_add_type gpr_histogram_add_import; |
| 700 | #define gpr_histogram_add gpr_histogram_add_import |
| 701 | typedef int(*gpr_histogram_merge_type)(gpr_histogram *dst, const gpr_histogram *src); |
| 702 | extern gpr_histogram_merge_type gpr_histogram_merge_import; |
| 703 | #define gpr_histogram_merge gpr_histogram_merge_import |
| 704 | typedef double(*gpr_histogram_percentile_type)(gpr_histogram *histogram, double percentile); |
| 705 | extern gpr_histogram_percentile_type gpr_histogram_percentile_import; |
| 706 | #define gpr_histogram_percentile gpr_histogram_percentile_import |
| 707 | typedef double(*gpr_histogram_mean_type)(gpr_histogram *histogram); |
| 708 | extern gpr_histogram_mean_type gpr_histogram_mean_import; |
| 709 | #define gpr_histogram_mean gpr_histogram_mean_import |
| 710 | typedef double(*gpr_histogram_stddev_type)(gpr_histogram *histogram); |
| 711 | extern gpr_histogram_stddev_type gpr_histogram_stddev_import; |
| 712 | #define gpr_histogram_stddev gpr_histogram_stddev_import |
| 713 | typedef double(*gpr_histogram_variance_type)(gpr_histogram *histogram); |
| 714 | extern gpr_histogram_variance_type gpr_histogram_variance_import; |
| 715 | #define gpr_histogram_variance gpr_histogram_variance_import |
| 716 | typedef double(*gpr_histogram_maximum_type)(gpr_histogram *histogram); |
| 717 | extern gpr_histogram_maximum_type gpr_histogram_maximum_import; |
| 718 | #define gpr_histogram_maximum gpr_histogram_maximum_import |
| 719 | typedef double(*gpr_histogram_minimum_type)(gpr_histogram *histogram); |
| 720 | extern gpr_histogram_minimum_type gpr_histogram_minimum_import; |
| 721 | #define gpr_histogram_minimum gpr_histogram_minimum_import |
| 722 | typedef double(*gpr_histogram_count_type)(gpr_histogram *histogram); |
| 723 | extern gpr_histogram_count_type gpr_histogram_count_import; |
| 724 | #define gpr_histogram_count gpr_histogram_count_import |
| 725 | typedef double(*gpr_histogram_sum_type)(gpr_histogram *histogram); |
| 726 | extern gpr_histogram_sum_type gpr_histogram_sum_import; |
| 727 | #define gpr_histogram_sum gpr_histogram_sum_import |
| 728 | typedef double(*gpr_histogram_sum_of_squares_type)(gpr_histogram *histogram); |
| 729 | extern gpr_histogram_sum_of_squares_type gpr_histogram_sum_of_squares_import; |
| 730 | #define gpr_histogram_sum_of_squares gpr_histogram_sum_of_squares_import |
| 731 | typedef const uint32_t *(*gpr_histogram_get_contents_type)(gpr_histogram *histogram, size_t *count); |
| 732 | extern gpr_histogram_get_contents_type gpr_histogram_get_contents_import; |
| 733 | #define gpr_histogram_get_contents gpr_histogram_get_contents_import |
| 734 | typedef void(*gpr_histogram_merge_contents_type)(gpr_histogram *histogram, const uint32_t *data, size_t data_count, double min_seen, double max_seen, double sum, double sum_of_squares, double count); |
| 735 | extern gpr_histogram_merge_contents_type gpr_histogram_merge_contents_import; |
| 736 | #define gpr_histogram_merge_contents gpr_histogram_merge_contents_import |
| 737 | typedef int(*gpr_join_host_port_type)(char **out, const char *host, int port); |
| 738 | extern gpr_join_host_port_type gpr_join_host_port_import; |
| 739 | #define gpr_join_host_port gpr_join_host_port_import |
| 740 | typedef int(*gpr_split_host_port_type)(const char *name, char **host, char **port); |
| 741 | extern gpr_split_host_port_type gpr_split_host_port_import; |
| 742 | #define gpr_split_host_port gpr_split_host_port_import |
Yuchen Zeng | 66f3a4b | 2016-09-15 11:21:52 -0700 | [diff] [blame] | 743 | typedef void(*gpr_log_type)(const char *file, int line, gpr_log_severity severity, const char *format, ...) GPR_PRINT_FORMAT_CHECK(4, 5); |
David Garcia Quintas | c79b065 | 2016-07-27 21:11:58 -0700 | [diff] [blame] | 744 | extern gpr_log_type gpr_log_import; |
| 745 | #define gpr_log gpr_log_import |
| 746 | typedef void(*gpr_log_message_type)(const char *file, int line, gpr_log_severity severity, const char *message); |
| 747 | extern gpr_log_message_type gpr_log_message_import; |
| 748 | #define gpr_log_message gpr_log_message_import |
| 749 | typedef void(*gpr_set_log_verbosity_type)(gpr_log_severity min_severity_to_print); |
| 750 | extern gpr_set_log_verbosity_type gpr_set_log_verbosity_import; |
| 751 | #define gpr_set_log_verbosity gpr_set_log_verbosity_import |
| 752 | typedef void(*gpr_log_verbosity_init_type)(); |
| 753 | extern gpr_log_verbosity_init_type gpr_log_verbosity_init_import; |
| 754 | #define gpr_log_verbosity_init gpr_log_verbosity_init_import |
| 755 | typedef void(*gpr_set_log_function_type)(gpr_log_func func); |
| 756 | extern gpr_set_log_function_type gpr_set_log_function_import; |
| 757 | #define gpr_set_log_function gpr_set_log_function_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 758 | typedef char *(*gpr_format_message_type)(int messageid); |
| 759 | extern gpr_format_message_type gpr_format_message_import; |
| 760 | #define gpr_format_message gpr_format_message_import |
| 761 | typedef char *(*gpr_strdup_type)(const char *src); |
| 762 | extern gpr_strdup_type gpr_strdup_import; |
| 763 | #define gpr_strdup gpr_strdup_import |
Yuchen Zeng | 362ac1b | 2016-09-13 16:01:31 -0700 | [diff] [blame] | 764 | typedef int(*gpr_asprintf_type)(char **strp, const char *format, ...) GPR_PRINT_FORMAT_CHECK(2, 3); |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 765 | extern gpr_asprintf_type gpr_asprintf_import; |
| 766 | #define gpr_asprintf gpr_asprintf_import |
| 767 | typedef const char *(*gpr_subprocess_binary_extension_type)(); |
| 768 | extern gpr_subprocess_binary_extension_type gpr_subprocess_binary_extension_import; |
| 769 | #define gpr_subprocess_binary_extension gpr_subprocess_binary_extension_import |
| 770 | typedef gpr_subprocess *(*gpr_subprocess_create_type)(int argc, const char **argv); |
| 771 | extern gpr_subprocess_create_type gpr_subprocess_create_import; |
| 772 | #define gpr_subprocess_create gpr_subprocess_create_import |
| 773 | typedef void(*gpr_subprocess_destroy_type)(gpr_subprocess *p); |
| 774 | extern gpr_subprocess_destroy_type gpr_subprocess_destroy_import; |
| 775 | #define gpr_subprocess_destroy gpr_subprocess_destroy_import |
| 776 | typedef int(*gpr_subprocess_join_type)(gpr_subprocess *p); |
| 777 | extern gpr_subprocess_join_type gpr_subprocess_join_import; |
| 778 | #define gpr_subprocess_join gpr_subprocess_join_import |
| 779 | typedef void(*gpr_subprocess_interrupt_type)(gpr_subprocess *p); |
| 780 | extern gpr_subprocess_interrupt_type gpr_subprocess_interrupt_import; |
| 781 | #define gpr_subprocess_interrupt gpr_subprocess_interrupt_import |
David Garcia Quintas | 2ee99f4 | 2016-08-01 19:15:31 -0700 | [diff] [blame] | 782 | typedef void(*gpr_mu_init_type)(gpr_mu *mu); |
| 783 | extern gpr_mu_init_type gpr_mu_init_import; |
| 784 | #define gpr_mu_init gpr_mu_init_import |
| 785 | typedef void(*gpr_mu_destroy_type)(gpr_mu *mu); |
| 786 | extern gpr_mu_destroy_type gpr_mu_destroy_import; |
| 787 | #define gpr_mu_destroy gpr_mu_destroy_import |
| 788 | typedef void(*gpr_mu_lock_type)(gpr_mu *mu); |
| 789 | extern gpr_mu_lock_type gpr_mu_lock_import; |
| 790 | #define gpr_mu_lock gpr_mu_lock_import |
| 791 | typedef void(*gpr_mu_unlock_type)(gpr_mu *mu); |
| 792 | extern gpr_mu_unlock_type gpr_mu_unlock_import; |
| 793 | #define gpr_mu_unlock gpr_mu_unlock_import |
| 794 | typedef int(*gpr_mu_trylock_type)(gpr_mu *mu); |
| 795 | extern gpr_mu_trylock_type gpr_mu_trylock_import; |
| 796 | #define gpr_mu_trylock gpr_mu_trylock_import |
| 797 | typedef void(*gpr_cv_init_type)(gpr_cv *cv); |
| 798 | extern gpr_cv_init_type gpr_cv_init_import; |
| 799 | #define gpr_cv_init gpr_cv_init_import |
| 800 | typedef void(*gpr_cv_destroy_type)(gpr_cv *cv); |
| 801 | extern gpr_cv_destroy_type gpr_cv_destroy_import; |
| 802 | #define gpr_cv_destroy gpr_cv_destroy_import |
| 803 | typedef int(*gpr_cv_wait_type)(gpr_cv *cv, gpr_mu *mu, gpr_timespec abs_deadline); |
| 804 | extern gpr_cv_wait_type gpr_cv_wait_import; |
| 805 | #define gpr_cv_wait gpr_cv_wait_import |
| 806 | typedef void(*gpr_cv_signal_type)(gpr_cv *cv); |
| 807 | extern gpr_cv_signal_type gpr_cv_signal_import; |
| 808 | #define gpr_cv_signal gpr_cv_signal_import |
| 809 | typedef void(*gpr_cv_broadcast_type)(gpr_cv *cv); |
| 810 | extern gpr_cv_broadcast_type gpr_cv_broadcast_import; |
| 811 | #define gpr_cv_broadcast gpr_cv_broadcast_import |
| 812 | typedef void(*gpr_once_init_type)(gpr_once *once, void (*init_routine)(void)); |
| 813 | extern gpr_once_init_type gpr_once_init_import; |
| 814 | #define gpr_once_init gpr_once_init_import |
| 815 | typedef void(*gpr_event_init_type)(gpr_event *ev); |
| 816 | extern gpr_event_init_type gpr_event_init_import; |
| 817 | #define gpr_event_init gpr_event_init_import |
| 818 | typedef void(*gpr_event_set_type)(gpr_event *ev, void *value); |
| 819 | extern gpr_event_set_type gpr_event_set_import; |
| 820 | #define gpr_event_set gpr_event_set_import |
| 821 | typedef void *(*gpr_event_get_type)(gpr_event *ev); |
| 822 | extern gpr_event_get_type gpr_event_get_import; |
| 823 | #define gpr_event_get gpr_event_get_import |
| 824 | typedef void *(*gpr_event_wait_type)(gpr_event *ev, gpr_timespec abs_deadline); |
| 825 | extern gpr_event_wait_type gpr_event_wait_import; |
| 826 | #define gpr_event_wait gpr_event_wait_import |
| 827 | typedef void(*gpr_ref_init_type)(gpr_refcount *r, int n); |
| 828 | extern gpr_ref_init_type gpr_ref_init_import; |
| 829 | #define gpr_ref_init gpr_ref_init_import |
| 830 | typedef void(*gpr_ref_type)(gpr_refcount *r); |
| 831 | extern gpr_ref_type gpr_ref_import; |
| 832 | #define gpr_ref gpr_ref_import |
| 833 | typedef void(*gpr_ref_non_zero_type)(gpr_refcount *r); |
| 834 | extern gpr_ref_non_zero_type gpr_ref_non_zero_import; |
| 835 | #define gpr_ref_non_zero gpr_ref_non_zero_import |
| 836 | typedef void(*gpr_refn_type)(gpr_refcount *r, int n); |
| 837 | extern gpr_refn_type gpr_refn_import; |
| 838 | #define gpr_refn gpr_refn_import |
| 839 | typedef int(*gpr_unref_type)(gpr_refcount *r); |
| 840 | extern gpr_unref_type gpr_unref_import; |
| 841 | #define gpr_unref gpr_unref_import |
| 842 | typedef void(*gpr_stats_init_type)(gpr_stats_counter *c, intptr_t n); |
| 843 | extern gpr_stats_init_type gpr_stats_init_import; |
| 844 | #define gpr_stats_init gpr_stats_init_import |
| 845 | typedef void(*gpr_stats_inc_type)(gpr_stats_counter *c, intptr_t inc); |
| 846 | extern gpr_stats_inc_type gpr_stats_inc_import; |
| 847 | #define gpr_stats_inc gpr_stats_inc_import |
| 848 | typedef intptr_t(*gpr_stats_read_type)(const gpr_stats_counter *c); |
| 849 | extern gpr_stats_read_type gpr_stats_read_import; |
| 850 | #define gpr_stats_read gpr_stats_read_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 851 | typedef int(*gpr_thd_new_type)(gpr_thd_id *t, void (*thd_body)(void *arg), void *arg, const gpr_thd_options *options); |
| 852 | extern gpr_thd_new_type gpr_thd_new_import; |
| 853 | #define gpr_thd_new gpr_thd_new_import |
| 854 | typedef gpr_thd_options(*gpr_thd_options_default_type)(void); |
| 855 | extern gpr_thd_options_default_type gpr_thd_options_default_import; |
| 856 | #define gpr_thd_options_default gpr_thd_options_default_import |
| 857 | typedef void(*gpr_thd_options_set_detached_type)(gpr_thd_options *options); |
| 858 | extern gpr_thd_options_set_detached_type gpr_thd_options_set_detached_import; |
| 859 | #define gpr_thd_options_set_detached gpr_thd_options_set_detached_import |
| 860 | typedef void(*gpr_thd_options_set_joinable_type)(gpr_thd_options *options); |
| 861 | extern gpr_thd_options_set_joinable_type gpr_thd_options_set_joinable_import; |
| 862 | #define gpr_thd_options_set_joinable gpr_thd_options_set_joinable_import |
| 863 | typedef int(*gpr_thd_options_is_detached_type)(const gpr_thd_options *options); |
| 864 | extern gpr_thd_options_is_detached_type gpr_thd_options_is_detached_import; |
| 865 | #define gpr_thd_options_is_detached gpr_thd_options_is_detached_import |
| 866 | typedef int(*gpr_thd_options_is_joinable_type)(const gpr_thd_options *options); |
| 867 | extern gpr_thd_options_is_joinable_type gpr_thd_options_is_joinable_import; |
| 868 | #define gpr_thd_options_is_joinable gpr_thd_options_is_joinable_import |
| 869 | typedef gpr_thd_id(*gpr_thd_currentid_type)(void); |
| 870 | extern gpr_thd_currentid_type gpr_thd_currentid_import; |
| 871 | #define gpr_thd_currentid gpr_thd_currentid_import |
| 872 | typedef void(*gpr_thd_join_type)(gpr_thd_id t); |
| 873 | extern gpr_thd_join_type gpr_thd_join_import; |
| 874 | #define gpr_thd_join gpr_thd_join_import |
David Garcia Quintas | 1399e46 | 2016-07-27 20:31:55 -0700 | [diff] [blame] | 875 | typedef gpr_timespec(*gpr_time_0_type)(gpr_clock_type type); |
| 876 | extern gpr_time_0_type gpr_time_0_import; |
| 877 | #define gpr_time_0 gpr_time_0_import |
| 878 | typedef gpr_timespec(*gpr_inf_future_type)(gpr_clock_type type); |
| 879 | extern gpr_inf_future_type gpr_inf_future_import; |
| 880 | #define gpr_inf_future gpr_inf_future_import |
| 881 | typedef gpr_timespec(*gpr_inf_past_type)(gpr_clock_type type); |
| 882 | extern gpr_inf_past_type gpr_inf_past_import; |
| 883 | #define gpr_inf_past gpr_inf_past_import |
| 884 | typedef void(*gpr_time_init_type)(void); |
| 885 | extern gpr_time_init_type gpr_time_init_import; |
| 886 | #define gpr_time_init gpr_time_init_import |
| 887 | typedef gpr_timespec(*gpr_now_type)(gpr_clock_type clock); |
| 888 | extern gpr_now_type gpr_now_import; |
| 889 | #define gpr_now gpr_now_import |
| 890 | typedef gpr_timespec(*gpr_convert_clock_type_type)(gpr_timespec t, gpr_clock_type target_clock); |
| 891 | extern gpr_convert_clock_type_type gpr_convert_clock_type_import; |
| 892 | #define gpr_convert_clock_type gpr_convert_clock_type_import |
| 893 | typedef int(*gpr_time_cmp_type)(gpr_timespec a, gpr_timespec b); |
| 894 | extern gpr_time_cmp_type gpr_time_cmp_import; |
| 895 | #define gpr_time_cmp gpr_time_cmp_import |
| 896 | typedef gpr_timespec(*gpr_time_max_type)(gpr_timespec a, gpr_timespec b); |
| 897 | extern gpr_time_max_type gpr_time_max_import; |
| 898 | #define gpr_time_max gpr_time_max_import |
| 899 | typedef gpr_timespec(*gpr_time_min_type)(gpr_timespec a, gpr_timespec b); |
| 900 | extern gpr_time_min_type gpr_time_min_import; |
| 901 | #define gpr_time_min gpr_time_min_import |
| 902 | typedef gpr_timespec(*gpr_time_add_type)(gpr_timespec a, gpr_timespec b); |
| 903 | extern gpr_time_add_type gpr_time_add_import; |
| 904 | #define gpr_time_add gpr_time_add_import |
| 905 | typedef gpr_timespec(*gpr_time_sub_type)(gpr_timespec a, gpr_timespec b); |
| 906 | extern gpr_time_sub_type gpr_time_sub_import; |
| 907 | #define gpr_time_sub gpr_time_sub_import |
| 908 | typedef gpr_timespec(*gpr_time_from_micros_type)(int64_t x, gpr_clock_type clock_type); |
| 909 | extern gpr_time_from_micros_type gpr_time_from_micros_import; |
| 910 | #define gpr_time_from_micros gpr_time_from_micros_import |
| 911 | typedef gpr_timespec(*gpr_time_from_nanos_type)(int64_t x, gpr_clock_type clock_type); |
| 912 | extern gpr_time_from_nanos_type gpr_time_from_nanos_import; |
| 913 | #define gpr_time_from_nanos gpr_time_from_nanos_import |
| 914 | typedef gpr_timespec(*gpr_time_from_millis_type)(int64_t x, gpr_clock_type clock_type); |
| 915 | extern gpr_time_from_millis_type gpr_time_from_millis_import; |
| 916 | #define gpr_time_from_millis gpr_time_from_millis_import |
| 917 | typedef gpr_timespec(*gpr_time_from_seconds_type)(int64_t x, gpr_clock_type clock_type); |
| 918 | extern gpr_time_from_seconds_type gpr_time_from_seconds_import; |
| 919 | #define gpr_time_from_seconds gpr_time_from_seconds_import |
| 920 | typedef gpr_timespec(*gpr_time_from_minutes_type)(int64_t x, gpr_clock_type clock_type); |
| 921 | extern gpr_time_from_minutes_type gpr_time_from_minutes_import; |
| 922 | #define gpr_time_from_minutes gpr_time_from_minutes_import |
| 923 | typedef gpr_timespec(*gpr_time_from_hours_type)(int64_t x, gpr_clock_type clock_type); |
| 924 | extern gpr_time_from_hours_type gpr_time_from_hours_import; |
| 925 | #define gpr_time_from_hours gpr_time_from_hours_import |
| 926 | typedef int32_t(*gpr_time_to_millis_type)(gpr_timespec timespec); |
| 927 | extern gpr_time_to_millis_type gpr_time_to_millis_import; |
| 928 | #define gpr_time_to_millis gpr_time_to_millis_import |
| 929 | typedef int(*gpr_time_similar_type)(gpr_timespec a, gpr_timespec b, gpr_timespec threshold); |
| 930 | extern gpr_time_similar_type gpr_time_similar_import; |
| 931 | #define gpr_time_similar gpr_time_similar_import |
| 932 | typedef void(*gpr_sleep_until_type)(gpr_timespec until); |
| 933 | extern gpr_sleep_until_type gpr_sleep_until_import; |
| 934 | #define gpr_sleep_until gpr_sleep_until_import |
| 935 | typedef double(*gpr_timespec_to_micros_type)(gpr_timespec t); |
| 936 | extern gpr_timespec_to_micros_type gpr_timespec_to_micros_import; |
| 937 | #define gpr_timespec_to_micros gpr_timespec_to_micros_import |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 938 | |
| 939 | void grpc_rb_load_imports(HMODULE library); |
| 940 | |
Yuchen Zeng | 12dfdc3 | 2016-04-26 22:05:41 -0700 | [diff] [blame] | 941 | #endif /* GPR_WINDOWS */ |
Nicolas "Pixel" Noble | d14b6ac | 2016-01-30 05:21:15 +0100 | [diff] [blame] | 942 | |
| 943 | #endif |