diff options
author | 2017-02-06 13:40:43 -0800 | |
---|---|---|
committer | 2017-02-06 13:40:43 -0800 | |
commit | 7a008c9311c037524b3401c81983e8788d71d679 (patch) | |
tree | 3a619e8be6d0d425a621bcda4f8758e276579f69 /src/core/lib/transport/timeout_encoding.h | |
parent | 1783bd3c99c51b75402fac2195926c1ffd3b6c72 (diff) | |
parent | d6d2677637fee5d2988dae08cee1b909d822c650 (diff) |
Merge remote-tracking branch 'upstream/master' into automate-objc-version-advancement
Diffstat (limited to 'src/core/lib/transport/timeout_encoding.h')
-rw-r--r-- | src/core/lib/transport/timeout_encoding.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/transport/timeout_encoding.h b/src/core/lib/transport/timeout_encoding.h index 92f02f6ecd..4c8025d800 100644 --- a/src/core/lib/transport/timeout_encoding.h +++ b/src/core/lib/transport/timeout_encoding.h @@ -34,7 +34,9 @@ #ifndef GRPC_CORE_LIB_TRANSPORT_TIMEOUT_ENCODING_H #define GRPC_CORE_LIB_TRANSPORT_TIMEOUT_ENCODING_H +#include <grpc/slice.h> #include <grpc/support/time.h> + #include "src/core/lib/support/string.h" #define GRPC_HTTP2_TIMEOUT_ENCODE_MIN_BUFSIZE (GPR_LTOA_MIN_BUFSIZE + 1) @@ -42,6 +44,6 @@ /* Encode/decode timeouts to the GRPC over HTTP/2 format; encoding may round up arbitrarily */ void grpc_http2_encode_timeout(gpr_timespec timeout, char *buffer); -int grpc_http2_decode_timeout(const char *buffer, gpr_timespec *timeout); +int grpc_http2_decode_timeout(grpc_slice text, gpr_timespec *timeout); #endif /* GRPC_CORE_LIB_TRANSPORT_TIMEOUT_ENCODING_H */ |