allocate a per-request structure and put it in the request record */
| 528 | |
| 529 | /* allocate a per-request structure and put it in the request record */ |
| 530 | static 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" */ |
no test coverage detected