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

Function ap_add_module_commands

server/config.c:526–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526static void ap_add_module_commands(module *m, apr_pool_t *p)
527{
528 apr_pool_t *tpool;
529 ap_mod_list *mln;
530 const command_rec *cmd;
531 char *dir;
532
533 cmd = m->cmds;
534
535 if (ap_config_hash == NULL) {
536 rebuild_conf_hash(p, 0);
537 }
538
539 tpool = apr_hash_pool_get(ap_config_hash);
540
541 while (cmd && cmd->name) {
542 mln = apr_palloc(tpool, sizeof(ap_mod_list));
543 mln->cmd = cmd;
544 mln->m = m;
545 dir = apr_pstrdup(tpool, cmd->name);
546
547 ap_str_tolower(dir);
548
549 mln->next = apr_hash_get(ap_config_hash, dir, APR_HASH_KEY_STRING);
550 apr_hash_set(ap_config_hash, dir, APR_HASH_KEY_STRING, mln);
551 ++cmd;
552 }
553}
554
555
556/* One-time setup for precompiled modules --- NOT to be done on restart */

Callers 2

rebuild_conf_hashFunction · 0.85
ap_add_moduleFunction · 0.85

Calls 2

rebuild_conf_hashFunction · 0.85
ap_str_tolowerFunction · 0.85

Tested by

no test coverage detected