[asterisk-commits] tilghman: trunk r155862 - /trunk/res/res_realtime.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 10 15:12:28 CST 2008
Author: tilghman
Date: Mon Nov 10 15:12:28 2008
New Revision: 155862
URL: http://svn.digium.com/view/asterisk?view=rev&rev=155862
Log:
Make documentation of update method match documentation and update update2
method to match.
Reported by: atis, via -dev mailing list.
Fixed by: me
Modified:
trunk/res/res_realtime.c
Modified: trunk/res/res_realtime.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_realtime.c?view=diff&rev=155862&r1=155861&r2=155862
==============================================================================
--- trunk/res/res_realtime.c (original)
+++ trunk/res/res_realtime.c Mon Nov 10 15:12:28 2008
@@ -84,7 +84,7 @@
case CLI_INIT:
e->command = "realtime update";
e->usage =
- "Usage: realtime update <family> <colupdate> <newvalue> <colmatch> <valuematch>\n"
+ "Usage: realtime update <family> <colmatch> <valuematch> <colupdate> <newvalue>\n"
" Update a single variable using the RealTime driver.\n"
" You must supply a family name, a column to update on, a new value, column to match, and value to match.\n"
" Ex: realtime update sipfriends name bobsphone port 4343\n"
@@ -117,7 +117,7 @@
case CLI_INIT:
e->command = "realtime update2";
e->usage =
- "Usage: realtime update2 <family> <colupdate> <newvalue> <colmatch> <valuematch> [... <colmatch5> <valuematch5>]\n"
+ "Usage: realtime update2 <family> <colmatch> <valuematch> [... <colmatch5> <valuematch5>] NULL <colupdate> <newvalue>\n"
" Update a single variable using the RealTime driver.\n"
" You must supply a family name, a column to update on, a new value, column to match, and value to match.\n"
" Ex: realtime update sipfriends name bobsphone port 4343\n"
@@ -131,15 +131,15 @@
return CLI_SHOWUSAGE;
if (a->argc == 7) {
- res = ast_update2_realtime(a->argv[2], a->argv[5], a->argv[6], SENTINEL, a->argv[3], a->argv[4], SENTINEL);
+ res = ast_update2_realtime(a->argv[2], a->argv[3], a->argv[4], SENTINEL, a->argv[5], a->argv[6], SENTINEL);
} else if (a->argc == 9) {
- res = ast_update2_realtime(a->argv[2], a->argv[5], a->argv[6], a->argv[7], a->argv[8], SENTINEL, a->argv[3], a->argv[4], SENTINEL);
+ res = ast_update2_realtime(a->argv[2], a->argv[3], a->argv[4], a->argv[5], a->argv[6], SENTINEL, a->argv[7], a->argv[8], SENTINEL);
} else if (a->argc == 11) {
- res = ast_update2_realtime(a->argv[2], a->argv[5], a->argv[6], a->argv[7], a->argv[8], a->argv[9], a->argv[10], SENTINEL, a->argv[3], a->argv[4], SENTINEL);
+ res = ast_update2_realtime(a->argv[2], a->argv[3], a->argv[4], a->argv[5], a->argv[6], a->argv[7], a->argv[8], SENTINEL, a->argv[9], a->argv[10], SENTINEL);
} else if (a->argc == 13) {
- res = ast_update2_realtime(a->argv[2], a->argv[5], a->argv[6], a->argv[7], a->argv[8], a->argv[9], a->argv[10], a->argv[11], a->argv[12], SENTINEL, a->argv[3], a->argv[4], SENTINEL);
+ res = ast_update2_realtime(a->argv[2], a->argv[3], a->argv[4], a->argv[5], a->argv[6], a->argv[7], a->argv[8], a->argv[9], a->argv[10], SENTINEL, a->argv[11], a->argv[12], SENTINEL);
} else if (a->argc == 15) {
- res = ast_update2_realtime(a->argv[2], a->argv[5], a->argv[6], a->argv[7], a->argv[8], a->argv[9], a->argv[10], a->argv[11], a->argv[12], a->argv[13], a->argv[14], SENTINEL, a->argv[3], a->argv[4], SENTINEL);
+ res = ast_update2_realtime(a->argv[2], a->argv[3], a->argv[4], a->argv[5], a->argv[6], a->argv[7], a->argv[8], a->argv[9], a->argv[10], a->argv[11], a->argv[12], SENTINEL, a->argv[13], a->argv[14], SENTINEL);
} else {
return CLI_SHOWUSAGE;
}
@@ -162,7 +162,7 @@
case CLI_INIT:
e->command = "realtime store";
e->usage =
- "Usage: realtime store <family> <colname1> <value1> [<colname2> <value2> [... <colmatch5> <valuematch5>]]\n"
+ "Usage: realtime store <family> <colname1> <value1> [<colname2> <value2> [... <colname5> <value5>]]\n"
" Create a stored row using the RealTime driver.\n"
" You must supply a family name and name/value pairs (up to 5). If\n"
" you need to store more than 5 key/value pairs, start with the first\n"
@@ -207,7 +207,7 @@
case CLI_INIT:
e->command = "realtime destroy";
e->usage =
- "Usage: realtime destroy <family> <colname1> <value1> [<colname2> <value2> [... <colmatch5> <valuematch5>]]\n"
+ "Usage: realtime destroy <family> <colmatch1> <valuematch1> [<colmatch2> <valuematch2> [... <colmatch5> <valuematch5>]]\n"
" Remove a stored row using the RealTime driver.\n"
" You must supply a family name and name/value pairs (up to 5).\n";
return NULL;
More information about the asterisk-commits
mailing list