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

Function cmd_example

modules/examples/mod_example_hooks.c:523–533  ·  view source on GitHub ↗

--------------------------------------------------------------------------*/ We prototyped the various syntax for command handlers (routines that */ are called when the configuration parser detects a directive declared */ by our module) earlier. Now we actually declare a "real" routine that */ will be invoked by the parser when our "real" directive is */ encountered.

Source from the content-addressed store, hash-verified

521 * current location in that location's configuration record.
522 */
523static const char *cmd_example(cmd_parms *cmd, void *mconfig)
524{
525 x_cfg *cfg = (x_cfg *) mconfig;
526
527 /*
528 * "Example Wuz Here"
529 */
530 cfg->local = 1;
531 trace_startup(cmd->pool, cmd->server, cfg, "cmd_example()");
532 return NULL;
533}
534
535/*
536 * This function gets called to create a per-directory configuration

Callers

nothing calls this directly

Calls 1

trace_startupFunction · 0.85

Tested by

no test coverage detected