summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2012-06-14 13:35:07 +0000
committerTerry Wilson <twilson@digium.com>2012-06-14 13:35:07 +0000
commit01307e4b7bbf01f2ff7e5a0a9e9047e7b5cd789f (patch)
tree0bf3e9762bc567605d08f304f2626080ad248417 /include
parent21997aa7bba8e2b2bc6fc6b01f0de4cc8ea56131 (diff)
Add filename alias support to the Config Options API
This adds the ability to handle a single filename alias for a config file. This is useful if a config filename has changed, but the old filename should be supported for backwards compatibility. Review: https://reviewboard.asterisk.org/r/1981/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/config_options.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asterisk/config_options.h b/include/asterisk/config_options.h
index b697ecb54..3e4c4a5ca 100644
--- a/include/asterisk/config_options.h
+++ b/include/asterisk/config_options.h
@@ -136,9 +136,11 @@ typedef int (*aco_pre_apply_config)(void);
*/
typedef void *(*aco_snapshot_alloc)(void);
+/*! \brief The representation of a single configuration file to be processed */
struct aco_file {
- const char *filename;
- const char **preload;
+ const char *filename; /*!< \brief The filename to be processed */
+ const char *alias; /*!< \brief An alias filename to be tried if 'filename' cannot be found */
+ const char **preload; /*!< \brief A null-terminated oredered array of categories to be loaded first */
struct aco_type *types[]; /*!< The list of types for this config. Required. Use a sentinel! */
};