You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2002/07/11 20:45:22 UTC
cvs commit: httpd-2.0/modules/proxy mod_proxy.h
trawick 2002/07/11 11:45:22
Modified: modules/proxy mod_proxy.h
Log:
add PROXY_OPTIONAL_HOOK() macro for modules that want to
optionally provide a mod_proxy hook
Revision Changes Path
1.84 +7 -0 httpd-2.0/modules/proxy/mod_proxy.h
Index: mod_proxy.h
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.h,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -r1.83 -r1.84
--- mod_proxy.h 23 Jun 2002 06:06:25 -0000 1.83
+++ mod_proxy.h 11 Jul 2002 18:45:22 -0000 1.84
@@ -240,6 +240,13 @@
#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))