From: Stefan Eissing Date: Wed, 4 Nov 2015 09:01:45 +0000 (+0000) Subject: removing copy+paste, unwanted AP_DECLAREs and renamed bucket type to have h2_ prefix X-Git-Tag: 2.5.0-alpha~2662 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15750aa51c8f15870fb83defe7f54932496588bb;p=apache removing copy+paste, unwanted AP_DECLAREs and renamed bucket type to have h2_ prefix git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1712514 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_bucket_eoc.c b/modules/http2/h2_bucket_eoc.c index 130a9ebf34..eccc067805 100644 --- a/modules/http2/h2_bucket_eoc.c +++ b/modules/http2/h2_bucket_eoc.c @@ -54,8 +54,7 @@ static apr_status_t bucket_read(apr_bucket *b, const char **str, return APR_SUCCESS; } -AP_DECLARE(apr_bucket *) h2_bucket_eoc_make(apr_bucket *b, - h2_session *session) +apr_bucket * h2_bucket_eoc_make(apr_bucket *b, h2_session *session) { h2_bucket_eoc *h; @@ -63,13 +62,12 @@ AP_DECLARE(apr_bucket *) h2_bucket_eoc_make(apr_bucket *b, h->session = session; b = apr_bucket_shared_make(b, h, 0, 0); - b->type = &ap_bucket_type_h2_eoc; + b->type = &h2_bucket_type_eoc; return b; } -AP_DECLARE(apr_bucket *) h2_bucket_eoc_create(apr_bucket_alloc_t *list, - h2_session *session) +apr_bucket * h2_bucket_eoc_create(apr_bucket_alloc_t *list, h2_session *session) { apr_bucket *b = apr_bucket_alloc(sizeof(*b), list); @@ -97,7 +95,7 @@ static void bucket_destroy(void *data) } } -AP_DECLARE_DATA const apr_bucket_type_t ap_bucket_type_h2_eoc = { +const apr_bucket_type_t h2_bucket_type_eoc = { "H2EOC", 5, APR_BUCKET_METADATA, bucket_destroy, bucket_read, diff --git a/modules/http2/h2_bucket_eoc.h b/modules/http2/h2_bucket_eoc.h index b8a62158a1..f1cd6f8135 100644 --- a/modules/http2/h2_bucket_eoc.h +++ b/modules/http2/h2_bucket_eoc.h @@ -19,13 +19,13 @@ struct h2_session; /** End Of HTTP/2 SESSION (H2EOC) bucket */ -AP_DECLARE_DATA extern const apr_bucket_type_t ap_bucket_type_h2_eoc; +extern const apr_bucket_type_t h2_bucket_type_eoc; -AP_DECLARE(apr_bucket *) h2_bucket_eoc_make(apr_bucket *b, - struct h2_session *session); +apr_bucket * h2_bucket_eoc_make(apr_bucket *b, + struct h2_session *session); -AP_DECLARE(apr_bucket *) h2_bucket_eoc_create(apr_bucket_alloc_t *list, - struct h2_session *session); +apr_bucket * h2_bucket_eoc_create(apr_bucket_alloc_t *list, + struct h2_session *session); #endif /* mod_http2_h2_bucket_eoc_h */ diff --git a/modules/http2/h2_bucket_eos.c b/modules/http2/h2_bucket_eos.c index b74754059c..73ef58b5fc 100644 --- a/modules/http2/h2_bucket_eos.c +++ b/modules/http2/h2_bucket_eos.c @@ -54,8 +54,7 @@ static apr_status_t bucket_read(apr_bucket *b, const char **str, return APR_SUCCESS; } -AP_DECLARE(apr_bucket *) h2_bucket_eos_make(apr_bucket *b, - h2_stream *stream) +apr_bucket *h2_bucket_eos_make(apr_bucket *b, h2_stream *stream) { h2_bucket_eos *h; @@ -63,13 +62,13 @@ AP_DECLARE(apr_bucket *) h2_bucket_eos_make(apr_bucket *b, h->stream = stream; b = apr_bucket_shared_make(b, h, 0, 0); - b->type = &ap_bucket_type_h2_eos; + b->type = &h2_bucket_type_eos; return b; } -AP_DECLARE(apr_bucket *) h2_bucket_eos_create(apr_bucket_alloc_t *list, - h2_stream *stream) +apr_bucket *h2_bucket_eos_create(apr_bucket_alloc_t *list, + h2_stream *stream) { apr_bucket *b = apr_bucket_alloc(sizeof(*b), list); @@ -97,7 +96,7 @@ static void bucket_destroy(void *data) } } -AP_DECLARE_DATA const apr_bucket_type_t ap_bucket_type_h2_eos = { +AP_DECLARE_DATA const apr_bucket_type_t h2_bucket_type_eos = { "H2EOS", 5, APR_BUCKET_METADATA, bucket_destroy, bucket_read, diff --git a/modules/http2/h2_bucket_eos.h b/modules/http2/h2_bucket_eos.h index e7ab871d15..bd3360db5a 100644 --- a/modules/http2/h2_bucket_eos.h +++ b/modules/http2/h2_bucket_eos.h @@ -19,13 +19,12 @@ struct h2_stream; /** End Of HTTP/2 STREAM (H2EOS) bucket */ -AP_DECLARE_DATA extern const apr_bucket_type_t ap_bucket_type_h2_eos; +extern const apr_bucket_type_t h2_bucket_type_eos; -AP_DECLARE(apr_bucket *) h2_bucket_eos_make(apr_bucket *b, - struct h2_stream *stream); +apr_bucket *h2_bucket_eos_make(apr_bucket *b, struct h2_stream *stream); -AP_DECLARE(apr_bucket *) h2_bucket_eos_create(apr_bucket_alloc_t *list, - struct h2_stream *stream); +apr_bucket *h2_bucket_eos_create(apr_bucket_alloc_t *list, + struct h2_stream *stream); #endif /* mod_http2_h2_bucket_stream_eos_h */