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

Function dump_a_hook

modules/generators/mod_info.c:633–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633static int dump_a_hook(request_rec * r, hook_get_t hook_get)
634{
635 int i;
636 char qs;
637 hook_struct_t *elts;
638 apr_array_header_t *hooks = hook_get();
639
640 if (!hooks) {
641 return 0;
642 }
643
644 if (r->args && strcasecmp(r->args, "hooks") == 0) {
645 qs = '?';
646 }
647 else {
648 qs = '#';
649 }
650
651 elts = (hook_struct_t *) hooks->elts;
652
653 for (i = 0; i < hooks->nelts; i++) {
654 ap_rprintf(r,
655 "&nbsp;&nbsp; %02d <a href=\"%c%s\">%s</a> <br/>",
656 elts[i].nOrder, qs, elts[i].szName, elts[i].szName);
657 }
658 return 0;
659}
660
661static int show_active_hooks(request_rec * r)
662{

Callers 1

show_active_hooksFunction · 0.85

Calls 1

ap_rprintfFunction · 0.85

Tested by

no test coverage detected