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

Function mod_info_module_cmds

modules/generators/mod_info.c:247–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247static int mod_info_module_cmds(request_rec * r, const command_rec * cmds,
248 ap_directive_t * node, int from, int level)
249{
250 int shown = from;
251 ap_directive_t *dir;
252 if (level == 0)
253 set_fn_info(r, NULL);
254 for (dir = node; dir; dir = dir->next) {
255 if (dir->first_child != NULL) {
256 if (level < mod_info_module_cmds(r, cmds, dir->first_child,
257 shown, level + 1)) {
258 shown = level;
259 mod_info_show_close(r, dir, level);
260 }
261 }
262 else if (mod_info_has_cmd(cmds, dir)) {
263 if (shown < level) {
264 mod_info_show_parents(r, dir->parent, shown, level - 1);
265 shown = level;
266 }
267 mod_info_show_cmd(r, dir, level);
268 }
269 }
270 return shown;
271}
272
273typedef struct
274{ /*XXX: should get something from apr_hooks.h instead */

Callers 2

display_infoFunction · 0.85
check_configFunction · 0.85

Calls 5

set_fn_infoFunction · 0.85
mod_info_show_closeFunction · 0.85
mod_info_has_cmdFunction · 0.85
mod_info_show_parentsFunction · 0.85
mod_info_show_cmdFunction · 0.85

Tested by

no test coverage detected