summaryrefslogtreecommitdiff
path: root/include/asterisk/phoneprov.h
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2014-10-14 18:12:40 +0000
committerGeorge Joseph <george.joseph@fairview5.com>2014-10-14 18:12:40 +0000
commit26724c65f787e7e953512cc572a0245c5e9fc0d4 (patch)
tree033b0c78b6dbfdb23f7c201412cefddba92faf2a /include/asterisk/phoneprov.h
parentc0943cf8d6bed1bcc589cc698108da9f358bbf3d (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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@425481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/phoneprov.h')
-rw-r--r--include/asterisk/phoneprov.h9
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.