SilcConfigTable

SYNOPSIS

    typedef struct { ... } SilcConfigTable;

DESCRIPTION

SILC Config table defines an easy and quick way of registering options in an entity. The function silc_config_register_table() will take as argument a SilcConfigTable array terminated by a NULL struct, it is important thus, that the `name' field of the terminating struct is set to NULL.

char *name

       The option name lowercase. The matching is always case-insensitive,
       but for convention the option specification must always be lowercase.

SilcConfigType type

       This specifies what kind of parameter this option expects.  The
       special cases SILC_CONFIG_ARG_BLOCK tells SILC Config that this is
       not a normal option but the name of a sub-block of the current
       block (there is no limit to the number of nested blocks allowed).

SilcConfigCallback callback

       Normally this is the value handler of the current option. If this
       field is set to NULL then the value is silently discarded. Useful
       for example to support deprecated options.

SilcConfigTable *subtable

       If the `type' field is set to SILC_CONFIG_ARG_BLOCK, then this field
       must point to a valid sub-table NULL-terminated array. If `type' is
       something else, this valued is unused.