summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-08-25 18:00:46 +0000
committerMatthew Jordan <mjordan@digium.com>2013-08-25 18:00:46 +0000
commit447848a580941a951ed728cde0ba80c254e2e1cd (patch)
tree938893027fbdfb8a6f471990c22cc73b6618e2a1 /include
parentde44880645b0f5d177258b3dd311765700a0fe9a (diff)
Fix the config_options_test
The config options test requires the entire configuration item to be transparent from the documentation system. So we let it do that too. As an aside, please do not use this power for evil. Documentation is your friend, and you really should document your configurations. Hiding your module's configuration information from the system attempting to enforce some sanity in the universe is something only a Bond villain would contemplate. ........ Merged revisions 397628 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/config_options.h10
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