diff options
author | 2015-08-09 13:52:19 -0700 | |
---|---|---|
committer | 2015-08-09 13:52:19 -0700 | |
commit | 87b4f2b23f2250673c5cfecb4de21932b3ece394 (patch) | |
tree | 8f1e9dfe234a51fc56160c9510cf918169cb2825 /src/core/channel/channel_args.h | |
parent | 49a513031880a6303273f3fe3cec837225a5ad78 (diff) |
wip. we need a way to pass args to server construction
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 */ |