res_phoneprov: Create accessor for ast_phoneprov_std_variable_lookup

Based on feedback from Richard, I created an accessor for
res_phoneprov/ast_phoneprov_std_variable_lookup and added
load priority to AST_MODULE_INFO.

Tested-by: George Joseph
Tested-by: Richard Mudgett

Review: https://reviewboard.asterisk.org/r/4076/
........

Merged revisions 425480 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 425481 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
George Joseph
2014-10-14 18:13:33 +00:00
parent fbb19db0c8
commit 527b58aeb7
3 changed files with 50 additions and 35 deletions

View File

@@ -53,8 +53,13 @@ enum ast_phoneprov_std_variables {
AST_PHONEPROV_STD_VAR_LIST_LENGTH, /* This entry must always be the last in the list */
};
/*! \brief Lookup table for the standard phoneprov variable names */
extern const char *ast_phoneprov_std_variable_lookup[];
/*!
* \brief Returns the string respresentation of a phoneprov standard variable.
* \param var One of enum ast_phoneprov_std_variables
*
* \return The string representation or NULL if not found.
*/
const char *ast_phoneprov_std_variable_lookup(enum ast_phoneprov_std_variables var);
/*!
* \brief Causes the provider to load its users.