The conftable
structure declares configuration directives which this module
is interested in handling, and the handler functions for those directives.
The handlers will be invoked when the server parses configuration files either
during startup, during restarts, or when an .ftpaccess
file is encountered.
Each entry in the configuration table includes the following fields, in this order:
- configuration directive name
- configuration directive handler, a pointer to the handler function. This function must have the signature/prototype:
MODRET func(cmd_rec *)
static conftable sample_config[] = {
{ "FooBarDirective", add_foobardirective },
{ NULL }
};
The trailing { NULL }
sentinel entry marks the end of the configuration
table, and should always be used.