From 295699425a0165c62d9f347806d42eab104269d3 Mon Sep 17 00:00:00 2001 From: Hongyu Chen Date: Thu, 22 Jan 2015 16:57:36 -0800 Subject: Adds extern "C" to census_tracing.h. We need to access tracing apis from cpp code. --- src/core/statistics/census_tracing.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/statistics') diff --git a/src/core/statistics/census_tracing.h b/src/core/statistics/census_tracing.h index 604096ba54..f356c9424d 100644 --- a/src/core/statistics/census_tracing.h +++ b/src/core/statistics/census_tracing.h @@ -34,6 +34,10 @@ #ifndef __GRPC_INTERNAL_STATISTICS_CENSUS_TRACING_H_ #define __GRPC_INTERNAL_STATISTICS_CENSUS_TRACING_H_ +#ifdef __cplusplus +extern "C" { +#endif + /* Opaque structure for trace object */ typedef struct trace_obj trace_obj; @@ -56,4 +60,8 @@ void census_internal_unlock_trace_store(void); /* Gets method tag name associated with the input trace object. */ const char* census_get_trace_method_name(const trace_obj* trace); +#ifdef __cplusplus +} +#endif + #endif /* __GRPC_INTERNAL_STATISTICS_CENSUS_TRACING_H_ */ -- cgit v1.2.3