|
|
@ -154,7 +154,8 @@ static grpc_call *grpc_channel_create_call_internal( |
|
|
|
grpc_call *grpc_channel_create_call(grpc_channel *channel, |
|
|
|
grpc_call *grpc_channel_create_call(grpc_channel *channel, |
|
|
|
grpc_completion_queue *cq, |
|
|
|
grpc_completion_queue *cq, |
|
|
|
const char *method, const char *host, |
|
|
|
const char *method, const char *host, |
|
|
|
gpr_timespec deadline) { |
|
|
|
gpr_timespec deadline, void *reserved) { |
|
|
|
|
|
|
|
(void) reserved; |
|
|
|
return grpc_channel_create_call_internal( |
|
|
|
return grpc_channel_create_call_internal( |
|
|
|
channel, cq, |
|
|
|
channel, cq, |
|
|
|
grpc_mdelem_from_metadata_strings( |
|
|
|
grpc_mdelem_from_metadata_strings( |
|
|
@ -167,8 +168,9 @@ grpc_call *grpc_channel_create_call(grpc_channel *channel, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void *grpc_channel_register_call(grpc_channel *channel, const char *method, |
|
|
|
void *grpc_channel_register_call(grpc_channel *channel, const char *method, |
|
|
|
const char *host) { |
|
|
|
const char *host, void *reserved) { |
|
|
|
registered_call *rc = gpr_malloc(sizeof(registered_call)); |
|
|
|
registered_call *rc = gpr_malloc(sizeof(registered_call)); |
|
|
|
|
|
|
|
(void) reserved; |
|
|
|
rc->path = grpc_mdelem_from_metadata_strings( |
|
|
|
rc->path = grpc_mdelem_from_metadata_strings( |
|
|
|
channel->metadata_context, GRPC_MDSTR_REF(channel->path_string), |
|
|
|
channel->metadata_context, GRPC_MDSTR_REF(channel->path_string), |
|
|
|
grpc_mdstr_from_string(channel->metadata_context, method)); |
|
|
|
grpc_mdstr_from_string(channel->metadata_context, method)); |
|
|
@ -184,8 +186,9 @@ void *grpc_channel_register_call(grpc_channel *channel, const char *method, |
|
|
|
|
|
|
|
|
|
|
|
grpc_call *grpc_channel_create_registered_call( |
|
|
|
grpc_call *grpc_channel_create_registered_call( |
|
|
|
grpc_channel *channel, grpc_completion_queue *completion_queue, |
|
|
|
grpc_channel *channel, grpc_completion_queue *completion_queue, |
|
|
|
void *registered_call_handle, gpr_timespec deadline) { |
|
|
|
void *registered_call_handle, gpr_timespec deadline, void *reserved) { |
|
|
|
registered_call *rc = registered_call_handle; |
|
|
|
registered_call *rc = registered_call_handle; |
|
|
|
|
|
|
|
(void) reserved; |
|
|
|
return grpc_channel_create_call_internal( |
|
|
|
return grpc_channel_create_call_internal( |
|
|
|
channel, completion_queue, GRPC_MDELEM_REF(rc->path), |
|
|
|
channel, completion_queue, GRPC_MDELEM_REF(rc->path), |
|
|
|
GRPC_MDELEM_REF(rc->authority), deadline); |
|
|
|
GRPC_MDELEM_REF(rc->authority), deadline); |
|
|
|