Lines Matching refs:p

52     plugin_data * const p = p_d;  in FREE_FUNC()  local
53 array_free_data(&p->split_vals); in FREE_FUNC()
54 if (NULL == p->cvlist) return; in FREE_FUNC()
56 for (int i = !p->cvlist[0].v.u2[1], used = p->nconfig; i < used; ++i) { in FREE_FUNC()
57 config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0]; in FREE_FUNC()
149 static void mod_evhost_patch_config(request_st * const r, plugin_data * const p) { in mod_evhost_patch_config() argument
150 p->conf = p->defaults; /* copy small struct instead of memcpy() */ in mod_evhost_patch_config()
152 for (int i = 1, used = p->nconfig; i < used; ++i) { in mod_evhost_patch_config()
153 if (config_check_cond(r, (uint32_t)p->cvlist[i].k_id)) in mod_evhost_patch_config()
154 mod_evhost_merge_config(&p->conf, p->cvlist + p->cvlist[i].v.u2[0]); in mod_evhost_patch_config()
168 plugin_data * const p = p_d; in SETDEFAULTS_FUNC() local
169 if (!config_plugin_values_init(srv, p, cpk, "mod_evhost")) in SETDEFAULTS_FUNC()
174 for (int i = !p->cvlist[0].v.u2[1]; i < p->nconfig; ++i) { in SETDEFAULTS_FUNC()
175 config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0]; in SETDEFAULTS_FUNC()
197 if (p->nconfig > 0 && p->cvlist->v.u2[1]) { in SETDEFAULTS_FUNC()
198 const config_plugin_value_t *cpv = p->cvlist + p->cvlist->v.u2[0]; in SETDEFAULTS_FUNC()
200 mod_evhost_merge_config(&p->defaults, cpv); in SETDEFAULTS_FUNC()
326 plugin_data *p = p_d; in mod_evhost_uri_handler() local
331 mod_evhost_patch_config(r, p); in mod_evhost_uri_handler()
334 if (NULL == p->conf.path_pieces) return HANDLER_GO_ON; in mod_evhost_uri_handler()
337 mod_evhost_build_doc_root_path(b, &p->split_vals, &r->uri.authority, p->conf.path_pieces); in mod_evhost_uri_handler()
350 int mod_evhost_plugin_init(plugin *p);
351 int mod_evhost_plugin_init(plugin *p) { in mod_evhost_plugin_init() argument
352 p->version = LIGHTTPD_VERSION_ID; in mod_evhost_plugin_init()
353 p->name = "evhost"; in mod_evhost_plugin_init()
354 p->init = mod_evhost_init; in mod_evhost_plugin_init()
355 p->set_defaults = mod_evhost_set_defaults; in mod_evhost_plugin_init()
356 p->handle_docroot = mod_evhost_uri_handler; in mod_evhost_plugin_init()
357 p->cleanup = mod_evhost_free; in mod_evhost_plugin_init()