diff options
author | Jeff Trawick <trawick@apache.org> | 2002-07-11 20:45:22 +0200 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2002-07-11 20:45:22 +0200 |
commit | 97b87390dde02b55a3e8c264c6be627194920156 (patch) | |
tree | 09f748174f9ce8c3bc5e37aa6d63ddd451459db9 /modules | |
parent | Strength-reduce a 64-bit "mod 16" operation to "& 0xf" in cached_explode() (diff) | |
download | apache2-97b87390dde02b55a3e8c264c6be627194920156.tar.xz apache2-97b87390dde02b55a3e8c264c6be627194920156.zip |
add PROXY_OPTIONAL_HOOK() macro for modules that want to
optionally provide a mod_proxy hook
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96013 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/proxy/mod_proxy.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/proxy/mod_proxy.h b/modules/proxy/mod_proxy.h index b986b31ed8..b971ceff87 100644 --- a/modules/proxy/mod_proxy.h +++ b/modules/proxy/mod_proxy.h @@ -240,6 +240,13 @@ typedef struct { #define PROXY_DECLARE_DATA __declspec(dllimport) #endif +/** + * Hook an optional proxy hook. Unlike static hooks, this uses a macro + * instead of a function. + */ +#define PROXY_OPTIONAL_HOOK(name,fn,pre,succ,order) \ + APR_OPTIONAL_HOOK(proxy,name,fn,pre,succ,order) + APR_DECLARE_EXTERNAL_HOOK(proxy, PROXY, int, scheme_handler, (request_rec *r, proxy_server_conf *conf, char *url, const char *proxyhost, apr_port_t proxyport)) |