summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-11-16 10:07:24 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-11-16 10:07:24 +0000
commit02733f3290ec4fe3b3b0c9a078e9a7024a51bf16 (patch)
tree52e6226f825c8c3c3043bc83456a828a21ecf283 /include
parentc00d3374ff064a3962571ffc3791f2d421d56e36 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index ea360991b..ab67fb22b 100644
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -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