aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/impl/codegen/compression_types.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-07-21 16:23:08 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-07-21 16:23:08 -0700
commitc97fc14a0ece99339f56b313b862f1a28f48c8b8 (patch)
tree3ab8cc2c3d9744c61f97be53a818ec709c800cd9 /include/grpc/impl/codegen/compression_types.h
parent6a9833b377a4d76f70cbd67253954ecac0dcdc7c (diff)
Revert "Stream compression configuration"
Diffstat (limited to 'include/grpc/impl/codegen/compression_types.h')
-rw-r--r--include/grpc/impl/codegen/compression_types.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/grpc/impl/codegen/compression_types.h b/include/grpc/impl/codegen/compression_types.h
index e51099f8d5..e39c13e88d 100644
--- a/include/grpc/impl/codegen/compression_types.h
+++ b/include/grpc/impl/codegen/compression_types.h
@@ -58,21 +58,9 @@ typedef enum {
GRPC_COMPRESS_DEFLATE,
GRPC_COMPRESS_GZIP,
/* TODO(ctiller): snappy */
- GRPC_STREAM_COMPRESS_GZIP,
GRPC_COMPRESS_ALGORITHMS_COUNT
} grpc_compression_algorithm;
-#define GRPC_IS_STREAM_COMPRESSION_ALGORITHM(x) \
- ((x) >= GRPC_STREAM_COMPRESS_GZIP && (x) < GRPC_COMPRESS_ALGORITHMS_COUNT)
-#define GRPC_IS_MESSAGE_COMPRESSION_ALGORITHM(x) \
- ((x) >= GRPC_COMPRESS_DEFLATE && (x) <= GRPC_COMPRESS_GZIP)
-#define GRPC_STREAM_COMPRESS_FLAG_OFFSET \
- (GRPC_STREAM_COMPRESS_GZIP - GRPC_COMPRESS_DEFLATE)
-#define GRPC_MESSAGE_COMPRESSION_ALGORITHM_MASK \
- ((1u << GRPC_COMPRESS_DEFLATE) | (1u << GRPC_COMPRESS_GZIP))
-#define GRPC_STREAM_COMPRESSION_ALGORITHM_MASK \
- ((1u << GRPC_STREAM_COMPRESS_GZIP))
-
/** Compression levels allow a party with knowledge of its peer's accepted
* encodings to request compression in an abstract way. The level-algorithm
* mapping is performed internally and depends on the peer's supported
@@ -82,18 +70,9 @@ typedef enum {
GRPC_COMPRESS_LEVEL_LOW,
GRPC_COMPRESS_LEVEL_MED,
GRPC_COMPRESS_LEVEL_HIGH,
- GRPC_STREAM_COMPRESS_LEVEL_LOW,
- GRPC_STREAM_COMPRESS_LEVEL_MED,
- GRPC_STREAM_COMPRESS_LEVEL_HIGH,
GRPC_COMPRESS_LEVEL_COUNT
} grpc_compression_level;
-#define GRPC_IS_STREAM_COMPRESSION_LEVEL(x) \
- (((x) >= GRPC_STREAM_COMPRESS_LEVEL_LOW) && \
- ((x) <= GRPC_STREAM_COMPRESS_LEVEL_HIGH))
-#define GRPC_IS_MESSAGE_COMPRESSION_LEVEL(x) \
- (((x) >= GRPC_COMPRESS_LEVEL_LOW) && ((x) <= GRPC_COMPRESS_LEVEL_HIGH))
-
typedef struct grpc_compression_options {
/** All algs are enabled by default. This option corresponds to the channel
* argument key behind \a GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET