MCPcopy Create free account
hub / github.com/apache/httpd / magic_set_config

Function magic_set_config

modules/metadata/mod_mime_magic.c:530–538  ·  view source on GitHub ↗

allocate a per-request structure and put it in the request record */

Source from the content-addressed store, hash-verified

528
529/* allocate a per-request structure and put it in the request record */
530static magic_req_rec *magic_set_config(request_rec *r)
531{
532 magic_req_rec *req_dat = (magic_req_rec *) apr_palloc(r->pool,
533 sizeof(magic_req_rec));
534
535 req_dat->head = req_dat->tail = (magic_rsl *) NULL;
536 ap_set_module_config(r->request_config, &mime_magic_module, req_dat);
537 return req_dat;
538}
539
540/* add a string to the result string list for this request */
541/* it is the responsibility of the caller to allocate "str" */

Callers 2

magic_rsl_addFunction · 0.85
magic_find_ctFunction · 0.85

Calls 1

ap_set_module_configFunction · 0.85

Tested by

no test coverage detected