aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-08 18:20:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-08 18:20:49 +0000
commitc930a4479cb2c64fb6478a71eccd1254c0850bc2 (patch)
tree35f55cb3606cae448a84ff414d3ab41247842e0c /include/asterisk
parent4c7b19fa13c970f77183e26a3df10bc6046ac9c2 (diff)
Minor config updates, add module counts (bug #2593)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3953 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/config.h13
-rwxr-xr-xinclude/asterisk/config_pvt.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index e377f7ce6..0812b98c9 100755
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -116,6 +116,19 @@ int ast_category_exist(struct ast_config *config, char *category_name);
*/
struct ast_variable *ast_load_realtime(const char *family, ...);
+//! Retrieve realtime configuration
+/*!
+ * \param family which family/config to lookup
+ * \param keyfield which field to use as the key
+ * \param lookup which value to look for in the key field to match the entry.
+ * This will use builtin configuration backends to look up a particular
+ * entity in realtime and return a variable list of its parameters. Unlike
+ * the ast_load_realtime, this function can return more than one entry and
+ * is thus stored inside a taditional ast_config structure rather than
+ * just returning a linked list of variables.
+ */
+struct ast_config *ast_load_realtime_multientry(const char *family, ...);
+
//! Update realtime configuration
/*!
* \param family which family/config to be updated
diff --git a/include/asterisk/config_pvt.h b/include/asterisk/config_pvt.h
index 1e7238e7c..c79c26e19 100755
--- a/include/asterisk/config_pvt.h
+++ b/include/asterisk/config_pvt.h
@@ -31,6 +31,7 @@ struct ast_config_reg {
char name[CONFIG_KEYWORD_STRLEN];
struct ast_config *(*static_func)(const char *database, const char *table, const char *, struct ast_config *,struct ast_category **,struct ast_variable **,int);
struct ast_variable *(*realtime_func)(const char *database, const char *table, va_list ap);
+ struct ast_config *(*realtime_multi_func)(const char *database, const char *table, va_list ap);
int (*update_func)(const char *database, const char *table, const char *keyfield, const char *entity, va_list ap);
struct ast_config_reg *next;
};