xref: /aosp_15_r20/external/grpc-grpc/src/core/ext/transport/chttp2/transport/legacy_frame.h (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1 //
2 //
3 // Copyright 2015 gRPC authors.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 //
18 
19 #ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_LEGACY_FRAME_H
20 #define GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_LEGACY_FRAME_H
21 
22 #include <grpc/support/port_platform.h>
23 
24 // defined in internal.h
25 typedef struct grpc_chttp2_stream grpc_chttp2_stream;
26 typedef struct grpc_chttp2_transport grpc_chttp2_transport;
27 
28 #define GRPC_CHTTP2_FRAME_DATA 0
29 #define GRPC_CHTTP2_FRAME_HEADER 1
30 #define GRPC_CHTTP2_FRAME_CONTINUATION 9
31 #define GRPC_CHTTP2_FRAME_RST_STREAM 3
32 #define GRPC_CHTTP2_FRAME_SETTINGS 4
33 #define GRPC_CHTTP2_FRAME_PING 6
34 #define GRPC_CHTTP2_FRAME_GOAWAY 7
35 #define GRPC_CHTTP2_FRAME_WINDOW_UPDATE 8
36 
37 #define GRPC_CHTTP2_DATA_FLAG_END_STREAM 1
38 #define GRPC_CHTTP2_FLAG_ACK 1
39 #define GRPC_CHTTP2_DATA_FLAG_END_HEADERS 4
40 #define GRPC_CHTTP2_DATA_FLAG_PADDED 8
41 #define GRPC_CHTTP2_FLAG_HAS_PRIORITY 0x20
42 
43 #endif  // GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_LEGACY_FRAME_H
44