diff options
author | David Garcia Quintas <dgq@google.com> | 2016-03-17 22:51:52 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-03-17 22:51:52 -0700 |
commit | 13c2f6e69d04804b4c1cba6380b54f6adb80cee0 (patch) | |
tree | 5b62e2d0c5bb267e12e125ea5421c3e96c483157 /include | |
parent | 921f4b0a6e0c77f8c1d0f48b72d7087a21f5e311 (diff) |
Implemented compression level algorithms properly (as a function of the accepted algorithms by the call's peer.
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/compression.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/grpc/compression.h b/include/grpc/compression.h index acc168a6ee..70ba393261 100644 --- a/include/grpc/compression.h +++ b/include/grpc/compression.h @@ -55,11 +55,13 @@ GRPCAPI int grpc_compression_algorithm_parse( GRPCAPI int grpc_compression_algorithm_name( grpc_compression_algorithm algorithm, char **name); -/** Returns the compression algorithm corresponding to \a level. +/** Returns the compression algorithm corresponding to \a level for the + * compression algorithms encoded in the \a accepted_encodings bitset. * * It abort()s for unknown levels . */ GRPCAPI grpc_compression_algorithm -grpc_compression_algorithm_for_level(grpc_compression_level level); +grpc_compression_algorithm_for_level(grpc_compression_level level, + uint32_t accepted_encodings); GRPCAPI void grpc_compression_options_init(grpc_compression_options *opts); |