functions used by mod_proxy for export in DLL
Submitted by: Ian Holsman <IanH@cnet.com>
Reviewed by: Chuck murcko
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89078
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.18-dev
+ *) Add the AP_DECLARE()/AP_CORE_DECLARE macros on the return types
+ of functions used by mod_proxy for export in the DLL
+ [Ian Holsman <IanH@cnet.com>]
+
*) Prevent a hang when a cgi handled by mod_cgid tries to read a
request body from its stdin but no reqest body is being written to
the cgi. [Jeff Trawick]
* @param p The pool to allocate the config vector out of
* @return The config vector
*/
-ap_conf_vector_t *ap_create_request_config(apr_pool_t *p);
+AP_DECLARE(ap_conf_vector_t*) ap_create_request_config(apr_pool_t *p);
/**
* Setup the config vector for per dir module configs
* @param id ID of this connection; unique at any point in time.
* @return new conn_rec, or NULL if the connection has already been reset
*/
-conn_rec *ap_new_connection(apr_pool_t *p, server_rec *server,
+AP_CORE_DECLARE(conn_rec *)ap_new_connection(apr_pool_t *p, server_rec *server,
apr_socket_t *inout, long id);
/**
return OK;
}
-int ap_send_http_options(request_rec *r)
+AP_DECLARE(int) ap_send_http_options(request_rec *r)
{
if (r->assbackwards)
return DECLINED;
AP_DECLARE(void) ap_basic_http_header(request_rec *r, apr_bucket_brigade *bb);
AP_DECLARE(int) ap_send_http_trace(request_rec *r);
-int ap_send_http_options(request_rec *r);
+AP_DECLARE(int) ap_send_http_options(request_rec *r);
#ifdef __cplusplus
}
}
}
-ap_conf_vector_t *ap_create_request_config(apr_pool_t *p)
+AP_CORE_DECLARE(ap_conf_vector_t *)ap_create_request_config(apr_pool_t *p)
{
return create_empty_config(p);
}
structure, but for now...
*/
-conn_rec *ap_new_connection(apr_pool_t *p, server_rec *server,
+AP_CORE_DECLARE(conn_rec *)ap_new_connection(apr_pool_t *p, server_rec *server,
apr_socket_t *inout, long id)
{
conn_rec *conn = (conn_rec *) apr_pcalloc(p, sizeof(conn_rec));