1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

add per-dir config merging to mod_lua so LuaHook* in multiple per-dir sections

behaves as expected instead of discarding previous sections.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201443 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2011-11-13 15:48:06 +00:00
parent 7cbe53fc2a
commit b53e38b314
6 changed files with 143 additions and 5 deletions

View File

@@ -69,6 +69,12 @@
#include "lua_request.h"
#include "lua_vmprep.h"
typedef enum {
AP_LUA_INHERIT_UNSET = -1,
AP_LUA_INHERIT_NONE = 0,
AP_LUA_INHERIT_PARENT_FIRST = 1,
AP_LUA_INHERIT_PARENT_LAST = 2,
} ap_lua_inherit_t;
/**
* make a userdata out of a C pointer, and vice versa
@@ -103,6 +109,10 @@ typedef struct
/* the actual directory being configured */
char *dir;
/* Whether Lua scripts in a sub-dir are run before parents */
ap_lua_inherit_t inherit;
} ap_lua_dir_cfg;
typedef struct