diff options
author | Craig Tiller <ctiller@google.com> | 2016-11-10 16:27:48 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-11-10 16:27:48 -0800 |
commit | 5ef31ab9c92429e64a43501a4bd440760cca399b (patch) | |
tree | 6bae71d5b98750dd000f1b951514288f9e01a4b1 /include/grpc/compression.h | |
parent | e52bbb1d014bf1685ef4045e19c24a70b6d47ec3 (diff) |
Progress towards mdstr elimination
Diffstat (limited to 'include/grpc/compression.h')
-rw-r--r-- | include/grpc/compression.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/grpc/compression.h b/include/grpc/compression.h index 5f285cdcdf..659d6fe758 100644 --- a/include/grpc/compression.h +++ b/include/grpc/compression.h @@ -34,11 +34,12 @@ #ifndef GRPC_COMPRESSION_H #define GRPC_COMPRESSION_H -#include <stdlib.h> - #include <grpc/impl/codegen/port_platform.h> +#include <stdlib.h> + #include <grpc/impl/codegen/compression_types.h> +#include <grpc/slice.h> #ifdef __cplusplus extern "C" { @@ -48,8 +49,7 @@ extern "C" { * grpc_compression_algorithm instance, updating \a algorithm. Returns 1 upon * success, 0 otherwise. */ GRPCAPI int grpc_compression_algorithm_parse( - const char *name, size_t name_length, - grpc_compression_algorithm *algorithm); + grpc_slice value, grpc_compression_algorithm *algorithm); /** Updates \a name with the encoding name corresponding to a valid \a * algorithm. Note that \a name is statically allocated and must *not* be freed. |