dougm 01/05/14 21:23:41
Modified: include apr_hooks.h
. CHANGES
Log:
Make APR_IMPLEMENT_EXTERNAL_HOOK_BASE generate a
${namespace}_hook_get_${hookname} function to fetch the
list of registered hooks
Submitted by: dougm
Reviewed by: gstein
Revision Changes Path
1.39 +8 -0 apr-util/include/apr_hooks.h
Index: apr_hooks.h
===================================================================
RCS file: /home/cvs/apr-util/include/apr_hooks.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- apr_hooks.h 2001/02/16 04:17:10 1.38
+++ apr_hooks.h 2001/05/15 04:23:39 1.39
@@ -67,12 +67,16 @@
* @package Apache hooks functions
*/
+#define APR_IMPLEMENT_HOOK_GET_PROTO(ns,link,name) \
+link##_DECLARE(apr_array_header_t *) ns##_hook_get_##name(void)
+
#define APR_DECLARE_EXTERNAL_HOOK(ns,link,ret,name,args) \
typedef ret ns##_HOOK_##name##_t args; \
link##_DECLARE(void) ns##_hook_##name(ns##_HOOK_##name##_t *pf, \
const char * const *aszPre, \
const char * const *aszSucc, int
nOrder); \
link##_DECLARE(ret) ns##_run_##name args; \
+APR_IMPLEMENT_HOOK_GET_PROTO(ns,link,name); \
typedef struct ns##_LINK_##name##_t \
{ \
ns##_HOOK_##name##_t *pFunc; \
@@ -106,6 +110,10 @@
pHook->szName=apr_current_hooking_module; \
if(apr_debug_module_hooks) \
apr_show_hook(#name,aszPre,aszSucc); \
+ } \
+ APR_IMPLEMENT_HOOK_GET_PROTO(ns,link,name) \
+ { \
+ return _hooks.link_##name; \
}
/**
1.16 +3 -0 apr-util/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr-util/CHANGES,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- CHANGES 2001/05/12 03:44:17 1.15
+++ CHANGES 2001/05/15 04:23:40 1.16
@@ -1,4 +1,7 @@
Changes with APR-util b1
+ *) Make APR_IMPLEMENT_EXTERNAL_HOOK_BASE generate a
+ ${namespace}_hook_get_${hookname} function to fetch the
+ list of registered hooks [Doug MacEachern]
*) Allow LTFLAGS to be overridden by the configure command-line
(default="--silent") and introduce LT_LDFLAGS. [Roy Fielding]