From: Brian Pane Date: Fri, 10 May 2002 15:08:59 +0000 (+0000) Subject: Moved ap_setup_make_content_type() declaration to http_protocol.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a518bcbb7d07827c612bf72405d7960e37d63251;p=apache Moved ap_setup_make_content_type() declaration to http_protocol.h git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95031 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_protocol.h b/include/http_protocol.h index cdea1b2eb7..08bd750195 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -163,7 +163,17 @@ AP_DECLARE(apr_time_t) ap_rationalize_mtime(request_rec *r, apr_time_t mtime); * @return The content-type * @deffunc const char *ap_make_content_type(request_rec *r, const char *type); */ -AP_DECLARE(const char *) ap_make_content_type(request_rec *r, const char *type); +AP_DECLARE(const char *) ap_make_content_type(request_rec *r, + const char *type); + +#ifdef CORE_PRIVATE +/** + * Precompile metadata structures used by ap_make_content_type() + * @param r The pool to use for allocations + * @deffunc void ap_setup_make_content_type(apr_pool_t *pool) + */ +AP_DECLARE(void) ap_setup_make_content_type(apr_pool_t *pool); +#endif /* CORE_PRIVATE */ /** * Construct an entity tag from the resource information. If it's a real diff --git a/server/core.c b/server/core.c index e42fe8cd24..ff60706c2f 100644 --- a/server/core.c +++ b/server/core.c @@ -3851,8 +3851,6 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b) return APR_SUCCESS; } -AP_DECLARE(void) ap_setup_make_content_type(apr_pool_t *pool); - static int core_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) { ap_set_version(pconf);