summaryrefslogtreecommitdiffstats
path: root/include/ap_mpm.h
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2020-07-02 17:49:53 +0200
committerYann Ylavic <ylavic@apache.org>2020-07-02 17:49:53 +0200
commitc9472d3fc9829f69b329a33dbca1c52eb4e56b6e (patch)
tree75c6fd863a13ce10dfb5472b845d6bd1604978ee /include/ap_mpm.h
parentmpm_common: add pool argument to mpm_register_poll_callback[_timeout] hooks. (diff)
downloadapache2-c9472d3fc9829f69b329a33dbca1c52eb4e56b6e.tar.xz
apache2-c9472d3fc9829f69b329a33dbca1c52eb4e56b6e.zip
Follow up to r1879449: yet better MPM poll callback API.
Let pass a const pfds to the MPM, for it to make a copy on the given pool as needed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_mpm.h')
-rw-r--r--include/ap_mpm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ap_mpm.h b/include/ap_mpm.h
index a5e2ce1062..6698d0e7c6 100644
--- a/include/ap_mpm.h
+++ b/include/ap_mpm.h
@@ -224,7 +224,7 @@ AP_DECLARE(apr_status_t) ap_mpm_register_timed_callback(
*/
AP_DECLARE(apr_status_t) ap_mpm_register_poll_callback(
- apr_pool_t *p, apr_array_header_t *pfds,
+ apr_pool_t *p, const apr_array_header_t *pfds,
ap_mpm_callback_fn_t *cbfn, void *baton);
/**
@@ -247,7 +247,7 @@ AP_DECLARE(apr_status_t) ap_mpm_register_poll_callback(
*/
AP_DECLARE(apr_status_t) ap_mpm_register_poll_callback_timeout(
- apr_pool_t *p, apr_array_header_t *pfds,
+ apr_pool_t *p, const apr_array_header_t *pfds,
ap_mpm_callback_fn_t *cbfn, ap_mpm_callback_fn_t *tofn,
void *baton, apr_time_t timeout);