Lines Matching defs:cfg
173 const ap_lua_dir_cfg *cfg,
184 spec->scope = cfg->vm_scope;
186 spec->package_paths = cfg->package_paths;
187 spec->package_cpaths = cfg->package_cpaths;
192 spec->codecache = (cfg->codecache == AP_LUA_CACHE_UNSET) ? AP_LUA_CACHE_STAT : cfg->codecache;
193 spec->vm_min = cfg->vm_min ? cfg->vm_min : 1;
194 spec->vm_max = cfg->vm_max ? cfg->vm_max : 1;
296 const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
298 ap_lua_vm_spec *spec = create_vm_spec(&pool, r, cfg, NULL, NULL, NULL,
343 const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
353 for (n = 0; n < cfg->mapped_filters->nelts; n++) {
355 ((ap_lua_filter_handler_spec **) cfg->mapped_filters->elts)[n];
361 spec = create_vm_spec(&pool, r, cfg, server_cfg,
665 const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
668 apr_array_header_t *hook_specs = apr_hash_get(cfg->hooks, key,
679 spec = create_vm_spec(&pool, r, cfg, server_cfg,
751 const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
753 for (n = 0; n < cfg->mapped_handlers->nelts; n++) {
755 ((ap_lua_mapped_handler_spec **) cfg->mapped_handlers->elts)[n];
781 const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
783 for (n = 0; n < cfg->mapped_handlers->nelts; n++) {
785 ((ap_lua_mapped_handler_spec **) cfg->mapped_handlers->elts)[n];
800 spec = create_vm_spec(&pool, r, cfg, server_cfg,
864 static apr_size_t config_getstr(ap_configfile_t *cfg, char *buf,
869 if (cfg->getstr) {
870 apr_status_t rc = (cfg->getstr) (buf, bufsiz, cfg->param);
874 ++cfg->line_number;
884 apr_status_t rc = (cfg->getch) (&ch, cfg->param);
889 ++cfg->line_number;
973 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
978 apr_array_header_t *hook_specs = apr_hash_get(cfg->hooks, key,
983 apr_hash_set(cfg->hooks, key,
987 baton->spec->scope = cfg->vm_scope;
1117 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
1119 apr_array_header_t *hook_specs = apr_hash_get(cfg->hooks, key,
1125 apr_hash_set(cfg->hooks, key, APR_HASH_KEY_STRING, hook_specs);
1131 spec->scope = cfg->vm_scope;
1143 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
1152 spec->scope = cfg->vm_scope;
1155 *(ap_lua_mapped_handler_spec **) apr_array_push(cfg->mapped_handlers) = spec;
1166 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
1173 *(ap_lua_filter_handler_spec **) apr_array_push(cfg->mapped_filters) = spec;
1545 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
1547 return register_package_helper(cmd, arg, cfg->package_paths);
1558 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
1560 return register_package_helper(cmd, arg, cfg->package_cpaths);
1567 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
1570 cfg->inherit = AP_LUA_INHERIT_NONE;
1573 cfg->inherit = AP_LUA_INHERIT_PARENT_FIRST;
1576 cfg->inherit = AP_LUA_INHERIT_PARENT_LAST;
1590 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
1593 cfg->codecache = AP_LUA_CACHE_NEVER;
1596 cfg->codecache = AP_LUA_CACHE_STAT;
1599 cfg->codecache = AP_LUA_CACHE_FOREVER;
1615 ap_lua_dir_cfg *cfg = (ap_lua_dir_cfg *) _cfg;
1617 cfg->vm_scope = AP_LUA_SCOPE_ONCE;
1620 cfg->vm_scope = AP_LUA_SCOPE_REQUEST;
1623 cfg->vm_scope = AP_LUA_SCOPE_CONN;
1633 cfg->vm_scope = AP_LUA_SCOPE_THREAD;
1644 cfg->vm_scope = AP_LUA_SCOPE_SERVER;
1653 cfg->vm_min = vmin;
1654 cfg->vm_max = vmax;
1674 /* ap_lua_dir_cfg* cfg = (ap_lua_dir_cfg*)_cfg; */
1675 ap_lua_server_cfg *cfg = ap_get_module_config(cmd->server->module_config,
1678 cfg->root_path = root;
1733 const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
1740 spec = create_vm_spec(&pool, r, cfg, server_cfg, prov_spec->file_name,
1943 ap_lua_dir_cfg *cfg = apr_pcalloc(p, sizeof(ap_lua_dir_cfg));
1944 cfg->package_paths = apr_array_make(p, 2, sizeof(char *));
1945 cfg->package_cpaths = apr_array_make(p, 2, sizeof(char *));
1946 cfg->mapped_handlers =
1948 cfg->mapped_filters =
1950 cfg->pool = p;
1951 cfg->hooks = apr_hash_make(p);
1952 cfg->dir = apr_pstrdup(p, dir);
1953 cfg->vm_scope = AP_LUA_SCOPE_UNSET;
1954 cfg->codecache = AP_LUA_CACHE_UNSET;
1955 cfg->vm_min = 0;
1956 cfg->vm_max = 0;
1958 return cfg;
1963 ap_lua_request_cfg *cfg = apr_palloc(r->pool, sizeof(ap_lua_request_cfg));
1964 cfg->mapped_request_details = NULL;
1965 cfg->request_scoped_vms = apr_hash_make(r->pool);
1966 ap_set_module_config(r->request_config, &lua_module, cfg);
1973 ap_lua_server_cfg *cfg = apr_pcalloc(p, sizeof(ap_lua_server_cfg));
1974 cfg->root_path = NULL;
1976 return cfg;