aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/census/trace_context.h
diff options
context:
space:
mode:
authorGravatar Michael Darakananda <pongad@google.com>2017-10-10 15:07:28 +1100
committerGravatar Michael Darakananda <pongad@google.com>2017-10-10 15:07:28 +1100
commitdf6e3750b24a584daa823e01b2a69ac65f59af83 (patch)
tree659cbc6c0021d03564b516110abd4b09bd17ce82 /src/core/ext/census/trace_context.h
parentb268629245788bee994e96cb585a3ab2c78bafa8 (diff)
parentb6142ef1a6dc70565f468346c7935f43dbcb55fa (diff)
Merge branch 'master' into fix-php
Diffstat (limited to 'src/core/ext/census/trace_context.h')
-rw-r--r--src/core/ext/census/trace_context.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/ext/census/trace_context.h b/src/core/ext/census/trace_context.h
index a7233e6a2b..c707c63263 100644
--- a/src/core/ext/census/trace_context.h
+++ b/src/core/ext/census/trace_context.h
@@ -39,6 +39,10 @@
1 byte for is_sampled (bool) */
#define TRACE_MAX_CONTEXT_SIZE 31
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Encode a trace context (ctxt) into proto format to the buffer provided. The
size of buffer must be at least TRACE_MAX_CONTEXT_SIZE. On success, returns the
number of bytes successfully encoded into buffer. On failure, returns 0. */
@@ -53,4 +57,8 @@ of these do not exist. On success, returns true and false otherwise. */
bool decode_trace_context(google_trace_TraceContext *ctxt, uint8_t *buffer,
const size_t nbytes);
-#endif /* GRPC_CORE_EXT_CENSUS_TRACE_CONTEXT_H */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* GRPC_CORE_EXT_CENSUS_TRACE_CONTEXT_H */ \ No newline at end of file