diff options
author | 2014-12-15 15:14:12 -0800 | |
---|---|---|
committer | 2014-12-16 16:57:49 -0800 | |
commit | 2845cade4cfb481bc93e9f97430cb6982ec30c21 (patch) | |
tree | 836d20fb4dfd0bd681bf9e571141996d3ba8f809 /src/core/surface/completion_queue.c | |
parent | c6d61c4dd6deb80477cb5977b79b00614b20b409 (diff) |
Trailing metadata support.
Actually exposing it from the C API.
Also removing grpc_status, since it's mostly useless.
Change on 2014/12/15 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82180546
Diffstat (limited to 'src/core/surface/completion_queue.c')
-rw-r--r-- | src/core/surface/completion_queue.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/surface/completion_queue.c b/src/core/surface/completion_queue.c index 1f3074fd42..b890f9dab7 100644 --- a/src/core/surface/completion_queue.c +++ b/src/core/surface/completion_queue.c @@ -214,11 +214,16 @@ void grpc_cq_end_client_metadata_read(grpc_completion_queue *cc, void *tag, void grpc_cq_end_finished(grpc_completion_queue *cc, void *tag, grpc_call *call, grpc_event_finish_func on_finish, void *user_data, - grpc_status status) { + grpc_status_code status, const char *details, + grpc_metadata *metadata_elements, + size_t metadata_count) { event *ev; gpr_mu_lock(&grpc_iomgr_mu); ev = add_locked(cc, GRPC_FINISHED, tag, call, on_finish, user_data); - ev->base.data.finished = status; + ev->base.data.finished.status = status; + ev->base.data.finished.details = details; + ev->base.data.finished.metadata_count = metadata_count; + ev->base.data.finished.metadata_elements = metadata_elements; end_op_locked(cc, GRPC_FINISHED); gpr_mu_unlock(&grpc_iomgr_mu); } |