clang format code

pull/18327/head
Jan Tattermusch 6 years ago
parent fa33d47da5
commit 6dac288e95
  1. 16
      src/csharp/ext/grpc_csharp_ext.c

@ -1013,11 +1013,14 @@ grpcsharp_composite_call_credentials_create(grpc_call_credentials* creds1,
/* Native callback dispatcher */ /* Native callback dispatcher */
typedef int(GPR_CALLTYPE* grpcsharp_native_callback_dispatcher_func)( typedef int(GPR_CALLTYPE* grpcsharp_native_callback_dispatcher_func)(
void* tag, void* arg0, void* arg1, void* arg2, void* arg3, void* arg4, void *arg5); void* tag, void* arg0, void* arg1, void* arg2, void* arg3, void* arg4,
void* arg5);
static grpcsharp_native_callback_dispatcher_func native_callback_dispatcher = NULL; static grpcsharp_native_callback_dispatcher_func native_callback_dispatcher =
NULL;
GPR_EXPORT void GPR_CALLTYPE grpcsharp_native_callback_dispatcher_init(grpcsharp_native_callback_dispatcher_func func) { GPR_EXPORT void GPR_CALLTYPE grpcsharp_native_callback_dispatcher_init(
grpcsharp_native_callback_dispatcher_func func) {
GPR_ASSERT(func); GPR_ASSERT(func);
native_callback_dispatcher = func; native_callback_dispatcher = func;
} }
@ -1041,8 +1044,9 @@ static int grpcsharp_get_metadata_handler(
grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX], grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX],
size_t* num_creds_md, grpc_status_code* status, size_t* num_creds_md, grpc_status_code* status,
const char** error_details) { const char** error_details) {
native_callback_dispatcher(state, (void*)context.service_url, (void*)context.method_name, cb, user_data, native_callback_dispatcher(state, (void*)context.service_url,
(void*)0, NULL); (void*)context.method_name, cb, user_data,
(void*)0, NULL);
return 0; /* Asynchronous return. */ return 0; /* Asynchronous return. */
} }
@ -1051,7 +1055,7 @@ static void grpcsharp_metadata_credentials_destroy_handler(void* state) {
} }
GPR_EXPORT grpc_call_credentials* GPR_CALLTYPE GPR_EXPORT grpc_call_credentials* GPR_CALLTYPE
grpcsharp_metadata_credentials_create_from_plugin(void *callback_tag) { grpcsharp_metadata_credentials_create_from_plugin(void* callback_tag) {
grpc_metadata_credentials_plugin plugin; grpc_metadata_credentials_plugin plugin;
plugin.get_metadata = grpcsharp_get_metadata_handler; plugin.get_metadata = grpcsharp_get_metadata_handler;
plugin.destroy = grpcsharp_metadata_credentials_destroy_handler; plugin.destroy = grpcsharp_metadata_credentials_destroy_handler;

Loading…
Cancel
Save