silc_config_register

SYNOPSIS

    SilcBool silc_config_register(SilcConfigEntity ent, const char *name,
                              SilcConfigType type, SilcConfigCallback cb,
                              const SilcConfigTable *subtable,
                              void *context);

DESCRIPTION

Register option `name' in the entity `ent'. If `cb' is not NULL, it will be called with the *val pointer pointing to an internally allocated storage of type described by `type'.

If `type' is SILC_CONFIG_ARG_BLOCK, then `subtable' must be a valid pointer to a SilcConfigTable array specifying the options in the sub-block.

If the option `name' was already registered in this sub-block or it matches the reserved word "Include", then this function returns FALSE, otherwise it returns TRUE.

SEE ALSO

silc_config_register_table