apr_array_header_t *package_cpaths;
/* name of base file to load in the vm */
- char *file;
+ const char *file;
/* APL_SCOPE_ONCE | APL_SCOPE_REQUEST | APL_SCOPE_CONN | APL_SCOPE_THREAD */
int scope;
typedef struct
{
- char *function_name;
- char *file_name;
+ const char *function_name;
+ const char *file_name;
int scope;
ap_regex_t *uri_pattern;
const char *bytecode;
if (hook_specs) {
int i;
for (i = 0; i < hook_specs->nelts; i++) {
+ char *file;
ap_lua_mapped_handler_spec *hook_spec =
((ap_lua_mapped_handler_spec **) hook_specs->elts)[i];
spec->cb = &lua_open_callback;
spec->cb_arg = NULL;
- apr_filepath_merge(&spec->file, server_cfg->root_path,
+ apr_filepath_merge(&file, server_cfg->root_path,
spec->file, APR_FILEPATH_NOTRELATIVE, r->pool);
+ spec->file = file;
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01476)
"request details scope:%u, filename:%s, function:%s",
apr_hash_t *hooks; /* <wombat_hook_info> */
/* the actual directory being configured */
- char *dir;
+ const char *dir;
/* Whether Lua scripts in a sub-dir are run before parents */
ap_lua_inherit_t inherit;
typedef struct
{
- char *function_name;
+ const char *function_name;
ap_lua_vm_spec *spec;
} mapped_request_details;
typedef struct
{
lua_State *L;
- char *function;
+ const char *function;
} ap_lua_filter_ctx;
extern module AP_MODULE_DECLARE_DATA lua_module;