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_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_H
20 #define GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_H
21 
22 #include <grpc/support/port_platform.h>
23 
24 #include <grpc/slice.h>
25 
26 #include "src/core/lib/iomgr/error.h"
27 
28 /* defined in internal.h */
29 typedef struct grpc_chttp2_stream grpc_chttp2_stream;
30 typedef struct grpc_chttp2_transport grpc_chttp2_transport;
31 
32 #define GRPC_CHTTP2_FRAME_DATA 0
33 #define GRPC_CHTTP2_FRAME_HEADER 1
34 #define GRPC_CHTTP2_FRAME_CONTINUATION 9
35 #define GRPC_CHTTP2_FRAME_RST_STREAM 3
36 #define GRPC_CHTTP2_FRAME_SETTINGS 4
37 #define GRPC_CHTTP2_FRAME_PING 6
38 #define GRPC_CHTTP2_FRAME_GOAWAY 7
39 #define GRPC_CHTTP2_FRAME_WINDOW_UPDATE 8
40 
41 #define GRPC_CHTTP2_DATA_FLAG_END_STREAM 1
42 #define GRPC_CHTTP2_FLAG_ACK 1
43 #define GRPC_CHTTP2_DATA_FLAG_END_HEADERS 4
44 #define GRPC_CHTTP2_DATA_FLAG_PADDED 8
45 #define GRPC_CHTTP2_FLAG_HAS_PRIORITY 0x20
46 
47 #endif /* GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_H */
48