aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/backoff/backoff.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lib/backoff/backoff.h')
-rw-r--r--src/core/lib/backoff/backoff.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lib/backoff/backoff.h b/src/core/lib/backoff/backoff.h
index 32efdb9d92..80e49ea52a 100644
--- a/src/core/lib/backoff/backoff.h
+++ b/src/core/lib/backoff/backoff.h
@@ -21,6 +21,10 @@
#include "src/core/lib/iomgr/exec_ctx.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
/// const: how long to wait after the first failure before retrying
grpc_millis initial_connect_timeout;
@@ -55,4 +59,8 @@ grpc_millis grpc_backoff_step(grpc_exec_ctx *exec_ctx, grpc_backoff *backoff);
/// instead
void grpc_backoff_reset(grpc_backoff *backoff);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* GRPC_CORE_LIB_BACKOFF_BACKOFF_H */