aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/call.h
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-04-10 22:39:44 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-04-10 22:39:44 +0200
commit7a6d8fde095501016dc98f43299be2facc79f17e (patch)
treef88972d1f17e78920ee1228dee061878562dd27b /src/core/surface/call.h
parentf0863b02270f1b95d5c8b9f3f962959e4cbbdd42 (diff)
parent046c6656c961bb65508d725edb9adc60f63e3424 (diff)
Merge branch 'master' of github.com:grpc/grpc into freebsd
Diffstat (limited to 'src/core/surface/call.h')
-rw-r--r--src/core/surface/call.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/surface/call.h b/src/core/surface/call.h
index cb81cb52c2..06434f87ac 100644
--- a/src/core/surface/call.h
+++ b/src/core/surface/call.h
@@ -119,4 +119,13 @@ 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);
+extern int grpc_trace_batch;
+
+void grpc_call_log_batch(char *file, int line, gpr_log_severity severity,
+ grpc_call *call, const grpc_op *ops, size_t nops,
+ void *tag);
+
+#define GRPC_CALL_LOG_BATCH(sev, call, ops, nops, tag) \
+ if (grpc_trace_batch) grpc_call_log_batch(sev, call, ops, nops, tag)
+
#endif /* GRPC_INTERNAL_CORE_SURFACE_CALL_H */