summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-12-18 14:41:55 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-12-18 14:41:55 -0600
commitbac31e55bb85ace72cf27155e84e569f6d7f6ada (patch)
tree08ce0b22b12fd558f535c1dd4ab604ba7b5563b7 /include
parenta853b3bcffb3eaa771cf6f52e6e2e8893a2c657e (diff)
parent957709e1e824e221254599e4ad8445e3839ce535 (diff)
Merge changes from topic 'faster-aco' into 15
* changes: aco: Minimize use of regex. aco: Create ways to minimize use of regex.
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/config_options.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/asterisk/config_options.h b/include/asterisk/config_options.h
index f4c3db188..3227f94eb 100644
--- a/include/asterisk/config_options.h
+++ b/include/asterisk/config_options.h
@@ -40,18 +40,30 @@ struct aco_type_internal;
enum aco_type_t {
ACO_GLOBAL,
ACO_ITEM,
+ ACO_IGNORE,
};
-/*! \brief Whether a category regex is a blackist or a whitelist */
+/*! Type of category matching to perform */
enum aco_category_op {
+ /*! Regex based blacklist. */
ACO_BLACKLIST = 0,
+ /*! Regex based whitelist. */
ACO_WHITELIST,
+ /*! Blacklist with a single string matched with strcasecmp. */
+ ACO_BLACKLIST_EXACT,
+ /*! Whitelist with a single string matched with strcasecmp. */
+ ACO_WHITELIST_EXACT,
+ /*! Blacklist with a NULL terminated array of strings matched with strcasecmp. */
+ ACO_BLACKLIST_ARRAY,
+ /*! Whitelist with a NULL terminated array of strings matched with strcasecmp. */
+ ACO_WHITELIST_ARRAY,
};
/*! \brief What kind of matching should be done on an option name */
enum aco_matchtype {
ACO_EXACT = 1,
ACO_REGEX,
+ ACO_PREFIX,
};
/*! Callback functions for option parsing via aco_process_config() */