34 #ifndef GRPC_COMPRESSION_H
35 #define GRPC_COMPRESSION_H
46 #define GRPC_COMPRESSION_ALGORITHM_ARG "grpc.compression_algorithm"
47 #define GRPC_COMPRESSION_ALGORITHM_STATE_ARG "grpc.compression_algorithm_state"
Definition: compression.h:55
grpc_compression_algorithm
Definition: compression.h:50
Definition: compression.h:66
Definition: compression.h:53
void grpc_compression_options_init(grpc_compression_options *opts)
Definition: compression.h:52
void grpc_compression_options_enable_algorithm(grpc_compression_options *opts, grpc_compression_algorithm algorithm)
Mark algorithm as enabled in opts.
Definition: compression.h:59
Definition: compression.h:60
grpc_compression_level grpc_compression_level_for_algorithm(grpc_compression_algorithm algorithm)
Returns the compression level corresponding to algorithm.
grpc_compression_level
Definition: compression.h:58
Definition: compression.h:51
Definition: compression.h:61
int grpc_compression_algorithm_name(grpc_compression_algorithm algorithm, char **name)
Updates name with the encoding name corresponding to a valid algorithm.
void grpc_compression_options_disable_algorithm(grpc_compression_options *opts, grpc_compression_algorithm algorithm)
Mark algorithm as disabled in opts.
grpc_compression_algorithm default_compression_algorithm
for channel
Definition: compression.h:68
Definition: compression.h:63
struct grpc_compression_options grpc_compression_options
grpc_compression_algorithm grpc_compression_algorithm_for_level(grpc_compression_level level)
Returns the compression algorithm corresponding to level.
gpr_uint32 enabled_algorithms_bitset
All algs are enabled by default.
Definition: compression.h:67
Definition: compression.h:62
int grpc_compression_algorithm_parse(const char *name, size_t name_length, grpc_compression_algorithm *algorithm)
Parses the first name_length bytes of name as a grpc_compression_algorithm instance, updating algorithm.
int grpc_compression_options_is_algorithm_enabled(const grpc_compression_options *opts, grpc_compression_algorithm algorithm)
Returns true if algorithm is marked as enabled in opts.