APREQ_DECLARE(apr_status_t) apreq_initialize(apr_pool_t *pool) { apr_status_t s = apreq_pre_initialize(pool); if (s != APR_SUCCESS) return s; return apreq_post_initialize(pool); }
static int apreq_post_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *base_server) { apr_status_t status; status = apreq_post_initialize(p); if (status != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_STARTUP|APLOG_ERR, status, base_server, APLOGNO(02056) "Failed to post-initialize libapreq2"); return HTTP_INTERNAL_SERVER_ERROR; } return OK; }