]> granicus.if.org Git - apache/blob - modules/http2/h2_bucket_eos.h
*) mod_http2: internal code cleanups and simplifications. Common output code for
[apache] / modules / http2 / h2_bucket_eos.h
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements.  See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License.  You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef mod_http2_h2_bucket_stream_eos_h
18 #define mod_http2_h2_bucket_stream_eos_h
19
20 /** End Of HTTP/2 STREAM (H2EOS) bucket */
21 extern const apr_bucket_type_t h2_bucket_type_eos;
22
23 #define H2_BUCKET_IS_H2EOS(e)     (e->type == &h2_bucket_type_eos)
24
25 apr_bucket *h2_bucket_eos_make(apr_bucket *b, conn_rec *c, int stream_id);
26
27 apr_bucket *h2_bucket_eos_create(apr_bucket_alloc_t *list, conn_rec *c, int stream_id); 
28
29 #endif /* mod_http2_h2_bucket_stream_eos_h */