aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/census/window_stats.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-20 18:56:37 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-10-02 16:23:34 -0700
commita7e6d65a4864422854117149a6e98ff80e492fa9 (patch)
treef45e79512522e1584a1f4d6f2ed25755fc97eb97 /src/core/ext/census/window_stats.h
parentac0c2d9036814b56a3f8d99d6f8cbafeed671eca (diff)
Changes for C to C++. Adding extern C to header files for compatibility.
Diffstat (limited to 'src/core/ext/census/window_stats.h')
-rw-r--r--src/core/ext/census/window_stats.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/ext/census/window_stats.h b/src/core/ext/census/window_stats.h
index ebe3732008..3b1d197f76 100644
--- a/src/core/ext/census/window_stats.h
+++ b/src/core/ext/census/window_stats.h
@@ -21,6 +21,10 @@
#include <grpc/support/time.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Keep rolling sums of a user-defined statistic (containing a number of
measurements) over a a number of time intervals ("windows"). For example,
you can use a window_stats object to answer questions such as
@@ -155,4 +159,8 @@ void census_window_stats_get_sums(const struct census_window_stats *wstats,
assertion failure). This function is thread-compatible. */
void census_window_stats_destroy(struct census_window_stats *wstats);
-#endif /* GRPC_CORE_EXT_CENSUS_WINDOW_STATS_H */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* GRPC_CORE_EXT_CENSUS_WINDOW_STATS_H */ \ No newline at end of file