aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-03 20:25:22 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-03 20:25:22 +0000
commit0113b9d39cadd868cc9376ff2bf0927fd92da685 (patch)
treef785e5a7286268929f83d6316af377dbd7c39036 /include/asterisk/config.h
parent3ec830c1f7e3d0db97d1bf1e0652972ee75b2a4c (diff)
Changed the behavior of sip's realtime_peer function to match the corresponding way of matching for non-realtime peers.
Now matches are made on both the IP address and port number, or if the insecure setting is set to "port" then just match on the IP address. In order to accomplish this, I also added a new API call, ast_category_root, which returns the first variable of an ast_category struct git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78103 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/config.h')
-rw-r--r--include/asterisk/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index 88833d603..160636588 100644
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -75,6 +75,14 @@ struct ast_config *ast_config_load_with_comments(const char *filename);
*/
void ast_config_destroy(struct ast_config *config);
+/*! \brief returns the root ast_variable of a config
+ * \param config pointer to an ast_config data structure
+ * \param cat name of the category for which you want the root
+ *
+ * Returns the category specified
+ */
+struct ast_variable *ast_category_root(struct ast_config *config, char *cat);
+
/*! \brief Goes through categories
* \param config Which config structure you wish to "browse"
* \param prev A pointer to a previous category.