diff options
author | Yang Gao <yangg@google.com> | 2015-01-27 10:53:44 -0800 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-01-27 10:53:44 -0800 |
commit | 8e5de80262b911c34868fdf64f9c14b81858d2c4 (patch) | |
tree | 196bd4e0539ce6793ee23862ac284f7949be9b59 /src | |
parent | 1e99756b58fe83a18321652a0319c630695d2d9e (diff) | |
parent | d631cf39239d2ee17e464445c3dd0001ac44601f (diff) |
Merge pull request #240 from ctiller/huh
Allow access to call stack from call.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/surface/call.c | 5 | ||||
-rw-r--r-- | src/core/surface/call.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 14d990df6a..bbd705b0c9 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -981,3 +981,8 @@ void grpc_call_set_deadline(grpc_call_element *elem, gpr_timespec deadline) { call->have_alarm = 1; grpc_alarm_init(&call->alarm, deadline, call_alarm, call, gpr_now()); } + +grpc_call_stack *grpc_call_get_call_stack(grpc_call *call) { + return CALL_STACK_FROM_CALL(call); +} + diff --git a/src/core/surface/call.h b/src/core/surface/call.h index 01605bb38a..804b387cb1 100644 --- a/src/core/surface/call.h +++ b/src/core/surface/call.h @@ -64,6 +64,8 @@ void grpc_call_client_initial_metadata_complete( void grpc_call_set_deadline(grpc_call_element *surface_element, gpr_timespec deadline); +grpc_call_stack *grpc_call_get_call_stack(grpc_call *call); + /* Given the top call_element, get the call object. */ grpc_call *grpc_call_from_top_element(grpc_call_element *surface_element); |