diff options
author | 2017-09-07 12:59:41 -0700 | |
---|---|---|
committer | 2017-09-07 12:59:41 -0700 | |
commit | b6ef6e9ff5701d15a352f38a450de2af49d19657 (patch) | |
tree | 183bb602a29faf8717845fe894281e5c1711af90 /src/core/lib/support/string.h | |
parent | f54af4832e08f317a05de909e88fdb38ace92cb0 (diff) | |
parent | b5dd3abad9b38cbd39917543b3991acd6ec368a8 (diff) |
Merge pull request #12080 from y-zeng/connectivity
Reconnect channels automatically in C++ clients
Diffstat (limited to 'src/core/lib/support/string.h')
-rw-r--r-- | src/core/lib/support/string.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/support/string.h b/src/core/lib/support/string.h index e11df8439d..5a56fa3a0a 100644 --- a/src/core/lib/support/string.h +++ b/src/core/lib/support/string.h @@ -19,6 +19,7 @@ #ifndef GRPC_CORE_LIB_SUPPORT_STRING_H #define GRPC_CORE_LIB_SUPPORT_STRING_H +#include <stdbool.h> #include <stddef.h> #include <grpc/support/port_platform.h> @@ -106,6 +107,8 @@ int gpr_stricmp(const char *a, const char *b); void *gpr_memrchr(const void *s, int c, size_t n); +/** Return true if lower(s) equals "true", "yes" or "1", otherwise false. */ +bool gpr_is_true(const char *s); #ifdef __cplusplus } #endif |