From: Ben Laurie Date: Sun, 20 May 2001 12:56:52 +0000 (+0000) Subject: More generic -> optional cleanup. X-Git-Tag: 2.0.19~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=296c0e0690a2784a920afe2f74a9d9e0c517aa50;p=thirdparty%2Fapache%2Fhttpd.git More generic -> optional cleanup. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89177 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_optional_fn_export.c b/modules/experimental/mod_optional_fn_export.c index b214a36621b..aea030e3fcd 100644 --- a/modules/experimental/mod_optional_fn_export.c +++ b/modules/experimental/mod_optional_fn_export.c @@ -58,7 +58,7 @@ #include "mod_optional_fn_export.h" /* The alert will note a strange mirror-image style resemblance to - * mod_generic_hook_import.c. Yes, I _did_ mean import. Think about it. + * mod_optional_hook_import.c. Yes, I _did_ mean import. Think about it. */ static int TestOptionalFn(const char *szStr) diff --git a/modules/experimental/mod_optional_fn_import.c b/modules/experimental/mod_optional_fn_import.c index 3be3b6be6d8..72222105cbb 100644 --- a/modules/experimental/mod_optional_fn_import.c +++ b/modules/experimental/mod_optional_fn_import.c @@ -58,7 +58,7 @@ #include "http_protocol.h" /* The alert will note a strange mirror-image style resemblance to - * mod_generic_hook_export.c. Yes, I _did_ mean export. Think about it. + * mod_optional_hook_export.c. Yes, I _did_ mean export. Think about it. */ static APR_OPTIONAL_FN_TYPE(TestOptionalFn) *pfn; diff --git a/modules/experimental/mod_optional_hook_export.c b/modules/experimental/mod_optional_hook_export.c index 34ef97b543a..e17660572dc 100644 --- a/modules/experimental/mod_optional_hook_export.c +++ b/modules/experimental/mod_optional_hook_export.c @@ -57,13 +57,13 @@ #include "mod_optional_hook_export.h" #include "http_protocol.h" -APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap,AP_MODULE,int,generic_hook_test, +APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap,AP_MODULE,int,optional_hook_test, (const char *szStr), (szStr),OK,DECLINED) static int ExportLogTransaction(request_rec *r) { - return ap_run_generic_hook_test(r->the_request); + return ap_run_optional_hook_test(r->the_request); } static void ExportRegisterHooks(apr_pool_t *p) diff --git a/modules/experimental/mod_optional_hook_export.h b/modules/experimental/mod_optional_hook_export.h index 7494078cdd2..0510ba0d77c 100644 --- a/modules/experimental/mod_optional_hook_export.h +++ b/modules/experimental/mod_optional_hook_export.h @@ -52,11 +52,11 @@ * . */ -#ifndef MOD_GENERIC_HOOK_EXPORT_H -#define MOD_GENERIC_HOOK_EXPORT_H +#ifndef MOD_OPTIONAL_HOOK_EXPORT_H +#define MOD_OPTOPNAL_HOOK_EXPORT_H #include "apr_optional_hooks.h" -APR_DECLARE_EXTERNAL_HOOK(ap,AP_MODULE,int,generic_hook_test,(const char *)) +APR_DECLARE_EXTERNAL_HOOK(ap,AP_MODULE,int,optional_hook_test,(const char *)) -#endif /* def MOD_GENERIC_HOOK_EXPORT_H */ +#endif /* def MOD_OPTIONAL_HOOK_EXPORT_H */ diff --git a/modules/experimental/mod_optional_hook_import.c b/modules/experimental/mod_optional_hook_import.c index ebf01586108..16e64ca77d3 100644 --- a/modules/experimental/mod_optional_hook_import.c +++ b/modules/experimental/mod_optional_hook_import.c @@ -67,8 +67,8 @@ static int ImportGenericHookTestHook(const char *szStr) static void ImportRegisterHooks(apr_pool_t *p) { - APR_OPTIONAL_HOOK(ap,generic_hook_test,ImportGenericHookTestHook,NULL,NULL, - APR_HOOK_MIDDLE); + APR_OPTIONAL_HOOK(ap,optional_hook_test,ImportGenericHookTestHook,NULL, + NULL,APR_HOOK_MIDDLE); } module optional_hook_import_module= diff --git a/modules/test/mod_optional_fn_export.c b/modules/test/mod_optional_fn_export.c index b214a36621b..aea030e3fcd 100644 --- a/modules/test/mod_optional_fn_export.c +++ b/modules/test/mod_optional_fn_export.c @@ -58,7 +58,7 @@ #include "mod_optional_fn_export.h" /* The alert will note a strange mirror-image style resemblance to - * mod_generic_hook_import.c. Yes, I _did_ mean import. Think about it. + * mod_optional_hook_import.c. Yes, I _did_ mean import. Think about it. */ static int TestOptionalFn(const char *szStr) diff --git a/modules/test/mod_optional_fn_import.c b/modules/test/mod_optional_fn_import.c index 3be3b6be6d8..72222105cbb 100644 --- a/modules/test/mod_optional_fn_import.c +++ b/modules/test/mod_optional_fn_import.c @@ -58,7 +58,7 @@ #include "http_protocol.h" /* The alert will note a strange mirror-image style resemblance to - * mod_generic_hook_export.c. Yes, I _did_ mean export. Think about it. + * mod_optional_hook_export.c. Yes, I _did_ mean export. Think about it. */ static APR_OPTIONAL_FN_TYPE(TestOptionalFn) *pfn; diff --git a/modules/test/mod_optional_hook_export.c b/modules/test/mod_optional_hook_export.c index 34ef97b543a..e17660572dc 100644 --- a/modules/test/mod_optional_hook_export.c +++ b/modules/test/mod_optional_hook_export.c @@ -57,13 +57,13 @@ #include "mod_optional_hook_export.h" #include "http_protocol.h" -APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap,AP_MODULE,int,generic_hook_test, +APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap,AP_MODULE,int,optional_hook_test, (const char *szStr), (szStr),OK,DECLINED) static int ExportLogTransaction(request_rec *r) { - return ap_run_generic_hook_test(r->the_request); + return ap_run_optional_hook_test(r->the_request); } static void ExportRegisterHooks(apr_pool_t *p) diff --git a/modules/test/mod_optional_hook_export.h b/modules/test/mod_optional_hook_export.h index 7494078cdd2..0510ba0d77c 100644 --- a/modules/test/mod_optional_hook_export.h +++ b/modules/test/mod_optional_hook_export.h @@ -52,11 +52,11 @@ * . */ -#ifndef MOD_GENERIC_HOOK_EXPORT_H -#define MOD_GENERIC_HOOK_EXPORT_H +#ifndef MOD_OPTIONAL_HOOK_EXPORT_H +#define MOD_OPTOPNAL_HOOK_EXPORT_H #include "apr_optional_hooks.h" -APR_DECLARE_EXTERNAL_HOOK(ap,AP_MODULE,int,generic_hook_test,(const char *)) +APR_DECLARE_EXTERNAL_HOOK(ap,AP_MODULE,int,optional_hook_test,(const char *)) -#endif /* def MOD_GENERIC_HOOK_EXPORT_H */ +#endif /* def MOD_OPTIONAL_HOOK_EXPORT_H */ diff --git a/modules/test/mod_optional_hook_import.c b/modules/test/mod_optional_hook_import.c index ebf01586108..16e64ca77d3 100644 --- a/modules/test/mod_optional_hook_import.c +++ b/modules/test/mod_optional_hook_import.c @@ -67,8 +67,8 @@ static int ImportGenericHookTestHook(const char *szStr) static void ImportRegisterHooks(apr_pool_t *p) { - APR_OPTIONAL_HOOK(ap,generic_hook_test,ImportGenericHookTestHook,NULL,NULL, - APR_HOOK_MIDDLE); + APR_OPTIONAL_HOOK(ap,optional_hook_test,ImportGenericHookTestHook,NULL, + NULL,APR_HOOK_MIDDLE); } module optional_hook_import_module=