diff options
author | George Joseph <george.joseph@fairview5.com> | 2014-10-14 18:13:33 +0000 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2014-10-14 18:13:33 +0000 |
commit | 527b58aeb76ef4451dadb12c2c48727840675cbc (patch) | |
tree | 754593937ee91b813a11d57ef2633f7ee7b9e908 /include/asterisk/phoneprov.h | |
parent | fbb19db0c83e6f9d1e7c557dc60adfa7cdf84e25 (diff) |
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
Diffstat (limited to 'include/asterisk/phoneprov.h')
-rw-r--r-- | include/asterisk/phoneprov.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/asterisk/phoneprov.h b/include/asterisk/phoneprov.h index 364a574be..24e8cc9fc 100644 --- a/include/asterisk/phoneprov.h +++ b/include/asterisk/phoneprov.h @@ -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. |