mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
add a small new function to retrieve variables from a config
once we have a pointer to the category. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -132,6 +132,13 @@ char *ast_category_browse(struct ast_config *config, const char *prev);
|
||||
*/
|
||||
struct ast_variable *ast_variable_browse(const struct ast_config *config, const char *category);
|
||||
|
||||
/*!
|
||||
* \brief given a pointer to a category, return the root variable.
|
||||
* This is equivalent to ast_variable_browse(), but more efficient if we
|
||||
* already have the struct ast_category * (e.g. from ast_category_get())
|
||||
*/
|
||||
struct ast_variable *ast_category_first(struct ast_category *cat);
|
||||
|
||||
/*!
|
||||
* \brief Gets a variable
|
||||
* \param config which (opened) config to use
|
||||
|
||||
Reference in New Issue
Block a user