diff options
author | 2015-07-23 02:41:33 +0200 | |
---|---|---|
committer | 2015-07-23 02:41:33 +0200 | |
commit | ebb514066e38cfc8cfd769b05443d282ba6c3b67 (patch) | |
tree | f344dcf25cdca1088b9a4422a4443d4a6d894811 /src/core/surface/channel.c | |
parent | 77446adeb7c6d2038eddca5dca9e0331b8c55811 (diff) |
Changing the library's code to adapt with the new API.
Diffstat (limited to 'src/core/surface/channel.c')
-rw-r--r-- | src/core/surface/channel.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c index a6438ff512..d16600d7c8 100644 --- a/src/core/surface/channel.c +++ b/src/core/surface/channel.c @@ -154,7 +154,8 @@ static grpc_call *grpc_channel_create_call_internal( grpc_call *grpc_channel_create_call(grpc_channel *channel, grpc_completion_queue *cq, const char *method, const char *host, - gpr_timespec deadline) { + gpr_timespec deadline, void *reserved) { + (void) reserved; return grpc_channel_create_call_internal( channel, cq, 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, - const char *host) { + const char *host, void *reserved) { registered_call *rc = gpr_malloc(sizeof(registered_call)); + (void) reserved; rc->path = grpc_mdelem_from_metadata_strings( channel->metadata_context, GRPC_MDSTR_REF(channel->path_string), 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_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; + (void) reserved; return grpc_channel_create_call_internal( channel, completion_queue, GRPC_MDELEM_REF(rc->path), GRPC_MDELEM_REF(rc->authority), deadline); |