mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +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:
@@ -587,6 +587,12 @@ static struct ast_category *next_available_category(struct ast_category *cat)
|
||||
return cat;
|
||||
}
|
||||
|
||||
/*! return the first var of a category */
|
||||
struct ast_variable *ast_category_first(struct ast_category *cat)
|
||||
{
|
||||
return (cat) ? cat->root : NULL;
|
||||
}
|
||||
|
||||
struct ast_variable *ast_category_root(struct ast_config *config, char *cat)
|
||||
{
|
||||
struct ast_category *category = ast_category_get(config, cat);
|
||||
|
Reference in New Issue
Block a user