diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-12-18 13:14:07 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-12-18 13:14:07 -0600 |
commit | b6d03c086bf86880c2b376b40c0e99e68da65f50 (patch) | |
tree | 0dfae99d1453c22d5a8583fe6451b1897e3bf588 /include | |
parent | 9867219329a441d5713b17606382524392641e3f (diff) | |
parent | 7413bcbeb5fc0eaa22de91e8d69714b725567efa (diff) |
Merge "aco: Create ways to minimize use of regex." into 13
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/config_options.h | 14 |
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() */ |