Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
e644cfdd
Commit
e644cfdd
authored
8 years ago
by
David Garcia Quintas
Browse files
Options
Downloads
Patches
Plain Diff
better docstrings for compression_types.h
parent
f11f2b1b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc/impl/codegen/compression_types.h
+19
-3
19 additions, 3 deletions
include/grpc/impl/codegen/compression_types.h
third_party/protobuf
+1
-1
1 addition, 1 deletion
third_party/protobuf
with
20 additions
and
4 deletions
include/grpc/impl/codegen/compression_types.h
+
19
−
3
View file @
e644cfdd
...
@@ -42,9 +42,10 @@ extern "C" {
...
@@ -42,9 +42,10 @@ extern "C" {
/** To be used in channel arguments */
/** To be used in channel arguments */
#define GRPC_COMPRESSION_ALGORITHM_ARG "grpc.compression_algorithm"
#define GRPC_COMPRESSION_ALGORITHM_ARG "grpc.compression_algorithm"
#define GRPC_COMPRESSION_LEVEL_ARG "grpc.compression_level"
#define GRPC_COMPRESSION_ALGORITHM_STATE_ARG "grpc.compression_algorithm_state"
#define GRPC_COMPRESSION_ALGORITHM_STATE_ARG "grpc.compression_algorithm_state"
/* The various compression algorithms supported by
G
RPC */
/* The various compression algorithms supported by
g
RPC */
typedef
enum
{
typedef
enum
{
GRPC_COMPRESS_NONE
=
0
,
GRPC_COMPRESS_NONE
=
0
,
GRPC_COMPRESS_DEFLATE
,
GRPC_COMPRESS_DEFLATE
,
...
@@ -53,6 +54,10 @@ typedef enum {
...
@@ -53,6 +54,10 @@ typedef enum {
GRPC_COMPRESS_ALGORITHMS_COUNT
GRPC_COMPRESS_ALGORITHMS_COUNT
}
grpc_compression_algorithm
;
}
grpc_compression_algorithm
;
/** 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
* compression algorithms. */
typedef
enum
{
typedef
enum
{
GRPC_COMPRESS_LEVEL_NONE
=
0
,
GRPC_COMPRESS_LEVEL_NONE
=
0
,
GRPC_COMPRESS_LEVEL_LOW
,
GRPC_COMPRESS_LEVEL_LOW
,
...
@@ -62,8 +67,19 @@ typedef enum {
...
@@ -62,8 +67,19 @@ typedef enum {
}
grpc_compression_level
;
}
grpc_compression_level
;
typedef
struct
grpc_compression_options
{
typedef
struct
grpc_compression_options
{
uint32_t
enabled_algorithms_bitset
;
/**< All algs are enabled by default */
/** All algs are enabled by default. This option corresponds to the channel
grpc_compression_algorithm
default_compression_algorithm
;
/**< for channel */
* argument key behind \a GRPC_COMPRESSION_ALGORITHM_STATE_ARG */
uint32_t
enabled_algorithms_bitset
;
/** The default channel compression algorithm. It'll be used in the absence of
* call specific settings. This option corresponds to the channel argument key
* behind \a GRPC_COMPRESSION_ALGORITHM_ARG */
grpc_compression_algorithm
default_compression_algorithm
;
/** The default channel compression level. It'll be used in the absence of
* call specific settings. This option corresponds to the channel argument key
* behind \a GRPC_COMPRESSION_ALGORITHM_ARG */
grpc_compression_algorithm
default_compression_level
;
}
grpc_compression_options
;
}
grpc_compression_options
;
#ifdef __cplusplus
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
protobuf
@
d5fb408d
Compare
a1938b2a
...
d5fb408d
Subproject commit
a1938b2aa9ca86ce7ce50c27ff9737c1008d2a03
Subproject commit
d5fb408ddc281ffcadeb08699e65bb694656d0bd
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment