[asterisk-commits] branch bweschke/func_realtime_bug_5695 r24210 - /team/bweschke/func_realtime_...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue May 2 09:44:22 MST 2006


Author: bweschke
Date: Tue May  2 11:44:21 2006
New Revision: 24210

URL: http://svn.digium.com/view/asterisk?rev=24210&view=rev
Log:
 Fixed from discussion around the dev conference 5/2/2006!


Modified:
    team/bweschke/func_realtime_bug_5695/funcs/func_realtime.c

Modified: team/bweschke/func_realtime_bug_5695/funcs/func_realtime.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/func_realtime_bug_5695/funcs/func_realtime.c?rev=24210&r1=24209&r2=24210&view=diff
==============================================================================
--- team/bweschke/func_realtime_bug_5695/funcs/func_realtime.c (original)
+++ team/bweschke/func_realtime_bug_5695/funcs/func_realtime.c Tue May  2 11:44:21 2006
@@ -58,14 +58,14 @@
 
 	AST_DECLARE_APP_ARGS(args,
 		AST_APP_ARG(family);
-		AST_APP_ARG(metamatch);
+		AST_APP_ARG(fieldmatch);
 		AST_APP_ARG(value);
 		AST_APP_ARG(delim1);
 		AST_APP_ARG(delim2);
 	);
 
 	if (ast_strlen_zero(data)) {
-		ast_log(LOG_WARNING, "Syntax: REALTIME(family|metamatch[|value[|delim1[|delim2]]]) - missing argument!\n");
+		ast_log(LOG_WARNING, "Syntax: REALTIME(family|fieldmatch[|value[|delim1[|delim2]]]) - missing argument!\n");
 		return -1;
 	} else
 		AST_STANDARD_APP_ARGS(args, data);
@@ -75,7 +75,7 @@
 	if (!args.delim2)
 		args.delim2 = "=";
 
-	var = ast_load_realtime(args.family, args.metamatch, args.value, NULL);
+	var = ast_load_realtime(args.family, args.fieldmatch, args.value, NULL);
 
 	if (var) {
 		head = var;
@@ -108,18 +108,18 @@
 
 	AST_DECLARE_APP_ARGS(args,
 		AST_APP_ARG(family);
-		AST_APP_ARG(metamatch);
+		AST_APP_ARG(fieldmatch);
 		AST_APP_ARG(value);
-		AST_APP_ARG(newcol);
+		AST_APP_ARG(field);
 	);
 
 	if (ast_strlen_zero(data)) {
-		ast_log(LOG_WARNING, "Syntax: REALTIME(family|metamatch|value|newcol) - missing argument!\n");
+		ast_log(LOG_WARNING, "Syntax: REALTIME(family|fieldmatch|value|newcol) - missing argument!\n");
 		return -1;
 	} else
 		AST_STANDARD_APP_ARGS(args, data);
 
-	res = ast_update_realtime(args.family, args.metamatch, args.value, args.newcol, (char *)value, NULL);
+	res = ast_update_realtime(args.family, args.fieldmatch, args.value, args.field, (char *)value, NULL);
 
 	if (res < 0) {
 		ast_log(LOG_WARNING, "Failed to update. Check the debug log for possible data repository related entries.\n");
@@ -133,11 +133,11 @@
 struct ast_custom_function realtime_function = {
 	.name = "REALTIME",
 	.synopsis = "RealTime Read/Write Functions",
-	.syntax = "REALTIME(family|metamatch[|value[|delim1[|delim2]]]) on read\n"
-		  "REALTIME(family|metamatch|value|newmeta) on write\n",
+	.syntax = "REALTIME(family|fieldmatch[|value[|delim1[|delim2]]]) on read\n"
+		  "REALTIME(family|fieldmatch|value|field) on write\n",
 	.desc = "This function will read or write values from/to a RealTime repository.\n"
 		"REALTIME(....) will read names/values from the repository, and \n"
-		"REALTIME(....)= will write a new value/meta to the repository. On a\n"
+		"REALTIME(....)= will write a new value/field to the repository. On a\n"
 		"read, this function returns a delimited text string. The name/value \n"
 		"pairs are delimited by delim1, and the name and value are delimited \n"
 		"between each other with delim2. The default for delim1 is '=' and   \n"



More information about the asterisk-commits mailing list