From: Graham Leggett Date: Sun, 17 Oct 2010 00:59:44 +0000 (+0000) Subject: As cache_control_t is public, make ap_cache_control() public with it. Bump X-Git-Tag: 2.3.9~299 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4ecd74a9ee4b709474749dcaa933e68163db57d;p=apache As cache_control_t is public, make ap_cache_control() public with it. Bump the MMN for addition of ap_cache_control(), and the addition of cache_control_t to the disk format. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1023397 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/ap_mmn.h b/include/ap_mmn.h index 5f433c3e3c..3aec253a50 100644 --- a/include/ap_mmn.h +++ b/include/ap_mmn.h @@ -275,6 +275,8 @@ * 20100923.3 (2.3.9-dev) Add "last" member to ap_directive_t * 20101012.0 (2.3.9-dev) Add header to cache_status hook. * 20101016.0 (2.3.9-dev) Remove ap_cache_check_allowed(). + * 20101017.0 (2.3.9-dev) Make ap_cache_control() public, add cache_control_t + * to mod_disk_cache format. */ #define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */ diff --git a/modules/cache/cache_util.h b/modules/cache/cache_util.h index a6827a3def..68d7d66823 100644 --- a/modules/cache/cache_util.h +++ b/modules/cache/cache_util.h @@ -225,14 +225,6 @@ typedef struct { cache_control_t control_in; /* cache control incoming */ } cache_request_rec; -/** - * Parse the Cache-Control and Pragma headers in one go, marking - * which tokens appear within the header. Populate the structure - * passed in. - */ -int ap_cache_control(request_rec *r, cache_control_t *cc, const char *cc_header, - const char *pragma_header, apr_table_t *headers); - /** * Check the whether the request allows a cached object to be served as per RFC2616 * section 14.9.4 (Cache Revalidation and Reload Controls) diff --git a/modules/cache/mod_cache.h b/modules/cache/mod_cache.h index 0e454f2b17..dc23cd8651 100644 --- a/modules/cache/mod_cache.h +++ b/modules/cache/mod_cache.h @@ -179,6 +179,14 @@ CACHE_DECLARE(apr_table_t *)ap_cache_cacheable_headers_in(request_rec *r); */ CACHE_DECLARE(apr_table_t *)ap_cache_cacheable_headers_out(request_rec *r); +/** + * Parse the Cache-Control and Pragma headers in one go, marking + * which tokens appear within the header. Populate the structure + * passed in. + */ +int ap_cache_control(request_rec *r, cache_control_t *cc, const char *cc_header, + const char *pragma_header, apr_table_t *headers); + /* hooks */