diff options
author | Paul Querna <pquerna@apache.org> | 2008-12-21 22:31:02 +0100 |
---|---|---|
committer | Paul Querna <pquerna@apache.org> | 2008-12-21 22:31:02 +0100 |
commit | 3cb4269f1366bb4b0b1f89156d4f4f32e3be02f2 (patch) | |
tree | 61a3b8a89cca9c5e0314c7e09ed80964299d34e5 | |
parent | Fixup lua_config.c with prefix rename, and make mod_lua.c so it compiles again. (diff) | |
download | apache2-3cb4269f1366bb4b0b1f89156d4f4f32e3be02f2.tar.xz apache2-3cb4269f1366bb4b0b1f89156d4f4f32e3be02f2.zip |
Make all of the hook callbacks static functions.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728511 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/lua/mod_lua.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 62e1b5fe19..51b6f4fda2 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -501,39 +501,39 @@ static const char* register_named_file_function_hook(const char *name, return NULL; } -int lua_check_user_id_harness(request_rec *r) { +static int lua_check_user_id_harness(request_rec *r) { return lua_request_rec_hook_harness(r, "check_user_id"); } -int lua_translate_name_harness(request_rec *r) { +static int lua_translate_name_harness(request_rec *r) { return lua_request_rec_hook_harness(r, "translate_name"); } -int lua_fixup_harness(request_rec *r) { +static int lua_fixup_harness(request_rec *r) { return lua_request_rec_hook_harness(r, "fixups"); } -int lua_map_to_storage_harness(request_rec *r) { +static int lua_map_to_storage_harness(request_rec *r) { return lua_request_rec_hook_harness(r, "map_to_storage"); } -int lua_type_checker_harness(request_rec *r) { +static int lua_type_checker_harness(request_rec *r) { return lua_request_rec_hook_harness(r, "type_checker"); } -int lua_access_checker_harness(request_rec *r) { +static int lua_access_checker_harness(request_rec *r) { return lua_request_rec_hook_harness(r, "access_checker"); } -int lua_auth_checker_harness(request_rec *r) { +static int lua_auth_checker_harness(request_rec *r) { return lua_request_rec_hook_harness(r, "auth_checker"); } -void lua_insert_filter_harness(request_rec *r) { +static void lua_insert_filter_harness(request_rec *r) { /* ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, "LuaHookInsertFilter not yet implemented"); */ } -int lua_quick_harness(request_rec *r, int lookup) { +static int lua_quick_harness(request_rec *r, int lookup) { if(lookup) { return DECLINED; } @@ -624,7 +624,7 @@ static const char* register_package_helper(cmd_parms *cmd, const char *arg, apr_ * Called for config directive which looks like * LuaPackagePath /lua/package/path/mapped/thing/like/this/?.lua */ -const char* register_package_dir(cmd_parms *cmd, void *_cfg, const char *arg) { +static const char* register_package_dir(cmd_parms *cmd, void *_cfg, const char *arg) { apl_dir_cfg* cfg = (apl_dir_cfg*)_cfg; return register_package_helper(cmd, arg, cfg->package_paths); @@ -634,7 +634,7 @@ const char* register_package_dir(cmd_parms *cmd, void *_cfg, const char *arg) { * Called for config directive which looks like * LuaPackageCPath /lua/package/path/mapped/thing/like/this/?.so */ -const char* register_package_cdir(cmd_parms *cmd, void *_cfg, const char *arg) { +static const char* register_package_cdir(cmd_parms *cmd, void *_cfg, const char *arg) { apl_dir_cfg* cfg = (apl_dir_cfg*)_cfg; return register_package_helper(cmd, arg, cfg->package_cpaths); @@ -644,7 +644,7 @@ const char* register_package_cdir(cmd_parms *cmd, void *_cfg, const char *arg) { * Called for config directive which looks like * LuaCodeCache */ -const char* register_code_cache(cmd_parms *cmd, void *_cfg, const char *arg) { +static const char* register_code_cache(cmd_parms *cmd, void *_cfg, const char *arg) { apl_dir_cfg* cfg = (apl_dir_cfg*)_cfg; if (apr_strnatcmp("stat", arg) == 0) { cfg->code_cache_style = APL_CODE_CACHE_STAT; |