diff options
Diffstat (limited to 'include/asterisk/config_options.h')
-rw-r--r-- | include/asterisk/config_options.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/config_options.h b/include/asterisk/config_options.h index 55e40ad8a..11a8c5bf9 100644 --- a/include/asterisk/config_options.h +++ b/include/asterisk/config_options.h @@ -156,6 +156,7 @@ struct aco_file { struct aco_info { const char *module; /*!< The name of the module whose config is being processed */ + int hidden:1; /*!< If enabled, this config item is hidden from users */ aco_pre_apply_config pre_apply_config; /*!< A callback called after processing, but before changes are applied */ aco_post_apply_config post_apply_config;/*!< A callback called after changes are applied */ aco_snapshot_alloc snapshot_alloc; /*!< Allocate an object to hold all global configs and item containers */ @@ -213,6 +214,15 @@ static struct aco_info name = { \ __VA_ARGS__ \ }; +#define CONFIG_INFO_TEST(name, arr, alloc, ...) \ +static struct aco_info name = { \ + .module = AST_MODULE, \ + .global_obj = &arr, \ + .snapshot_alloc = alloc, \ + .hidden = 1, \ + __VA_ARGS__ \ +}; + /*! \brief Initialize an aco_info structure * \note aco_info_destroy must be called if this succeeds * \param info The address of an aco_info struct to initialize |