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
12d716c8
Commit
12d716c8
authored
8 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
add nl
parent
08aea10d
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
src/core/ext/transport/chttp2/transport/http2_settings.c
+1
-0
1 addition, 0 deletions
src/core/ext/transport/chttp2/transport/http2_settings.c
tools/codegen/core/gen_settings_ids.py
+4
-2
4 additions, 2 deletions
tools/codegen/core/gen_settings_ids.py
with
5 additions
and
2 deletions
src/core/ext/transport/chttp2/transport/http2_settings.c
+
1
−
0
View file @
12d716c8
...
...
@@ -54,6 +54,7 @@ bool grpc_wire_id_to_setting_id(uint32_t wire_id, grpc_chttp2_setting_id *out) {
return
h
<
GPR_ARRAY_SIZE
(
grpc_setting_id_to_wire_id
)
&&
grpc_setting_id_to_wire_id
[
h
]
==
wire_id
;
}
const
grpc_chttp2_setting_parameters
grpc_chttp2_settings_parameters
[
GRPC_CHTTP2_NUM_SETTINGS
]
=
{
{
"HEADER_TABLE_SIZE"
,
4096u
,
0u
,
4294967295u
,
...
...
This diff is collapsed.
Click to expand it.
tools/codegen/core/gen_settings_ids.py
+
4
−
2
View file @
12d716c8
...
...
@@ -140,7 +140,8 @@ print >>C, """
}
*out = (grpc_chttp2_setting_id)h;
return h < GPR_ARRAY_SIZE(grpc_setting_id_to_wire_id) && grpc_setting_id_to_wire_id[h] == wire_id;
}
"""
%
cgargs
}
"""
%
cgargs
print
>>
H
,
"""
typedef enum {
...
...
@@ -156,8 +157,9 @@ typedef struct {
grpc_chttp2_invalid_value_behavior invalid_value_behavior;
uint32_t error_value;
} grpc_chttp2_setting_parameters;
extern const grpc_chttp2_setting_parameters grpc_chttp2_settings_parameters[GRPC_CHTTP2_NUM_SETTINGS];
"""
print
>>
H
,
"
extern const grpc_chttp2_setting_parameters grpc_chttp2_settings_parameters[GRPC_CHTTP2_NUM_SETTINGS];
"
print
>>
C
,
"
const grpc_chttp2_setting_parameters grpc_chttp2_settings_parameters[GRPC_CHTTP2_NUM_SETTINGS] = {
"
i
=
0
for
decorated_setting
in
sorted
(
decorated_settings
):
...
...
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