* called before any config is read
* @param p Pool to allocate out of
*/
-void ap_init_vhost_config(apr_pool_t *p);
+AP_DECLARE(void) ap_init_vhost_config(apr_pool_t *p);
/**
* called after the config has been read to compile the tables needed to do
* given an ip address only, give our best guess as to what vhost it is
* @param conn The current connection
*/
-void ap_update_vhost_given_ip(conn_rec *conn);
+AP_DECLARE(void) ap_update_vhost_given_ip(conn_rec *conn);
/**
* ap_update_vhost_given_ip is never enough, and this is always called after
* the headers have been read. It may change r->server.
* @param r The current request
*/
-void ap_update_vhost_from_headers(request_rec *r);
+AP_DECLARE(void) ap_update_vhost_from_headers(request_rec *r);
/**
* Match the host in the header with the hostname of the server for this
/* called at the beginning of the config */
-void ap_init_vhost_config(apr_pool_t *p)
+AP_DECLARE(void) ap_init_vhost_config(apr_pool_t *p)
{
memset(iphash_table, 0, sizeof(iphash_table));
default_list = NULL;
}
-void ap_update_vhost_from_headers(request_rec *r)
+AP_DECLARE(void) ap_update_vhost_from_headers(request_rec *r)
{
/* must set this for HTTP/1.1 support */
if (r->hostname || (r->hostname = apr_table_get(r->headers_in, "Host"))) {
/* Called for a new connection which has a known local_addr. Note that the
* new connection is assumed to have conn->server == main server.
*/
-void ap_update_vhost_given_ip(conn_rec *conn)
+AP_DECLARE(void) ap_update_vhost_given_ip(conn_rec *conn)
{
ipaddr_chain *trav;
apr_port_t port;