Skip to main content

Name

ec_config_register_option — Register a module option

Synopsis

#include "ec_config.h"

| int **ec_config_register_option** ( | option); |   |

ec_config_option_def * <var class="pdparam">option</var>;

Description

Register a module option. After registering an option, use ec_config_null_value to initialize the value of the option.

Parameters

option

A pointer to an ec_config_option_def struct.

Return Values

On success this function returns the slot member of an ec_config_option_internal struct. On failure -1 is returned.

Threading

It is legal to call this function in the thread.

See Also

Was this page helpful?