Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1011 Bytes

configuration.md

File metadata and controls

43 lines (29 loc) · 1011 Bytes

ProFTPD Developer Guide: Tables: Configuration Tables


Table of Contents


Configuration Tables

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 *)

Example Configuration Table

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.


Table of Contents