|
|
|
@ -146,7 +146,7 @@ char *grpc_channel_get_target(grpc_channel *channel) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static grpc_call *grpc_channel_create_call_internal( |
|
|
|
|
grpc_channel *channel, grpc_call *parent_call, gpr_uint32 inheritance_mask, |
|
|
|
|
grpc_channel *channel, grpc_call *parent_call, gpr_uint32 propagation_mask, |
|
|
|
|
grpc_completion_queue *cq, grpc_mdelem *path_mdelem, |
|
|
|
|
grpc_mdelem *authority_mdelem, gpr_timespec deadline) { |
|
|
|
|
grpc_mdelem *send_metadata[2]; |
|
|
|
@ -156,19 +156,19 @@ static grpc_call *grpc_channel_create_call_internal( |
|
|
|
|
send_metadata[0] = path_mdelem; |
|
|
|
|
send_metadata[1] = authority_mdelem; |
|
|
|
|
|
|
|
|
|
return grpc_call_create(channel, parent_call, inheritance_mask, cq, NULL, |
|
|
|
|
return grpc_call_create(channel, parent_call, propagation_mask, cq, NULL, |
|
|
|
|
send_metadata, GPR_ARRAY_SIZE(send_metadata), |
|
|
|
|
deadline); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
grpc_call *grpc_channel_create_call(grpc_channel *channel, |
|
|
|
|
grpc_call *parent_call, |
|
|
|
|
gpr_uint32 inheritance_mask, |
|
|
|
|
gpr_uint32 propagation_mask, |
|
|
|
|
grpc_completion_queue *cq, |
|
|
|
|
const char *method, const char *host, |
|
|
|
|
gpr_timespec deadline) { |
|
|
|
|
return grpc_channel_create_call_internal( |
|
|
|
|
channel, parent_call, inheritance_mask, cq, |
|
|
|
|
channel, parent_call, propagation_mask, cq, |
|
|
|
|
grpc_mdelem_from_metadata_strings( |
|
|
|
|
channel->metadata_context, GRPC_MDSTR_REF(channel->path_string), |
|
|
|
|
grpc_mdstr_from_string(channel->metadata_context, method, 0)), |
|
|
|
@ -195,12 +195,12 @@ void *grpc_channel_register_call(grpc_channel *channel, const char *method, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
grpc_call *grpc_channel_create_registered_call( |
|
|
|
|
grpc_channel *channel, grpc_call *parent_call, gpr_uint32 inheritance_mask, |
|
|
|
|
grpc_channel *channel, grpc_call *parent_call, gpr_uint32 propagation_mask, |
|
|
|
|
grpc_completion_queue *completion_queue, void *registered_call_handle, |
|
|
|
|
gpr_timespec deadline) { |
|
|
|
|
registered_call *rc = registered_call_handle; |
|
|
|
|
return grpc_channel_create_call_internal( |
|
|
|
|
channel, parent_call, inheritance_mask, completion_queue, |
|
|
|
|
channel, parent_call, propagation_mask, completion_queue, |
|
|
|
|
GRPC_MDELEM_REF(rc->path), GRPC_MDELEM_REF(rc->authority), deadline); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|