diff options
author | Craig Tiller <ctiller@google.com> | 2017-10-05 10:28:15 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-10-05 10:28:15 -0700 |
commit | 529102373061d599f861528e180bfdc2860f6b5f (patch) | |
tree | 2e4fc843fa7a093e3128fccddbbe795136f91acc /src/core/lib/backoff | |
parent | 76eab735f41baf8dd8af6524a8ce673a5803f5d4 (diff) | |
parent | c277fc0818eb2e7408db6758c9690bb4eb2c6ff7 (diff) |
Merge github.com:grpc/grpc into flowctl+millis
Diffstat (limited to 'src/core/lib/backoff')
-rw-r--r-- | src/core/lib/backoff/backoff.cc (renamed from src/core/lib/backoff/backoff.c) | 0 | ||||
-rw-r--r-- | src/core/lib/backoff/backoff.h | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lib/backoff/backoff.c b/src/core/lib/backoff/backoff.cc index fe0a751817..fe0a751817 100644 --- a/src/core/lib/backoff/backoff.c +++ b/src/core/lib/backoff/backoff.cc 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 */ |