|
|
|
@ -1013,11 +1013,14 @@ grpcsharp_composite_call_credentials_create(grpc_call_credentials* creds1, |
|
|
|
|
/* Native callback dispatcher */ |
|
|
|
|
|
|
|
|
|
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); |
|
|
|
|
native_callback_dispatcher = func; |
|
|
|
|
} |
|
|
|
@ -1041,7 +1044,8 @@ static int grpcsharp_get_metadata_handler( |
|
|
|
|
grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX], |
|
|
|
|
size_t* num_creds_md, grpc_status_code* status, |
|
|
|
|
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*)context.method_name, cb, user_data, |
|
|
|
|
(void*)0, NULL); |
|
|
|
|
return 0; /* Asynchronous return. */ |
|
|
|
|
} |
|
|
|
|