| 37 | } |
| 38 | |
| 39 | static int apl_toscope(const char *name) |
| 40 | { |
| 41 | if (0 == strcmp("once", name)) |
| 42 | return AP_LUA_SCOPE_ONCE; |
| 43 | if (0 == strcmp("request", name)) |
| 44 | return AP_LUA_SCOPE_REQUEST; |
| 45 | if (0 == strcmp("connection", name)) |
| 46 | return AP_LUA_SCOPE_CONN; |
| 47 | if (0 == strcmp("conn", name)) |
| 48 | return AP_LUA_SCOPE_CONN; |
| 49 | if (0 == strcmp("thread", name)) |
| 50 | return AP_LUA_SCOPE_THREAD; |
| 51 | return AP_LUA_SCOPE_ONCE; |
| 52 | } |
| 53 | |
| 54 | apr_status_t ap_lua_map_handler(ap_lua_dir_cfg *cfg, |
| 55 | const char *file, |
no outgoing calls
no test coverage detected