diff options
Diffstat (limited to 'src/core/channel/channel_args.h')
-rw-r--r-- | src/core/channel/channel_args.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/channel/channel_args.h b/src/core/channel/channel_args.h index 7e6ddd3997..f1a75117af 100644 --- a/src/core/channel/channel_args.h +++ b/src/core/channel/channel_args.h @@ -67,4 +67,18 @@ grpc_compression_algorithm grpc_channel_args_get_compression_algorithm( grpc_channel_args *grpc_channel_args_set_compression_algorithm( grpc_channel_args *a, grpc_compression_algorithm algorithm); +/** Sets the support for the given compression algorithm. By default, all + * compression algorithms are enabled. Disabling an algorithm set by + * grpc_channel_args_set_compression_algorithm disables compression altogether + * */ +grpc_channel_args *grpc_channel_args_compression_algorithm_set_state( + grpc_channel_args *a, + grpc_compression_algorithm algorithm, + int enabled); + +/** Returns the state (true for enabled, false for disabled) for \a algorithm */ +int grpc_channel_args_compression_algorithm_get_state( + grpc_channel_args *a, + grpc_compression_algorithm algorithm); + #endif /* GRPC_INTERNAL_CORE_CHANNEL_CHANNEL_ARGS_H */ |