[svn-commits] eliel: branch group/appdocsxml r144629 - /team/group/appdocsxml/apps/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Sep 26 10:40:35 CDT 2008


Author: eliel
Date: Fri Sep 26 10:40:35 2008
New Revision: 144629

URL: http://svn.digium.com/view/asterisk?view=rev&rev=144629
Log:
Move Log() and Verbose() applications to the new XML documentation schema.

Modified:
    team/group/appdocsxml/apps/app_verbose.c

Modified: team/group/appdocsxml/apps/app_verbose.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_verbose.c?view=diff&rev=144629&r1=144628&r2=144629
==============================================================================
--- team/group/appdocsxml/apps/app_verbose.c (original)
+++ team/group/appdocsxml/apps/app_verbose.c Fri Sep 26 10:40:35 2008
@@ -33,16 +33,43 @@
 #include "asterisk/channel.h"
 
 static char *app_verbose = "Verbose";
-static char *verbose_synopsis = "Send arbitrary text to verbose output";
-static char *verbose_descrip =
-"Verbose([<level>,]<message>)\n"
-"  level must be an integer value.  If not specified, defaults to 0.\n";
+static char *app_log = "Log";
 
-static char *app_log = "Log";
-static char *log_synopsis = "Send arbitrary text to a selected log level";
-static char *log_descrip =
-"Log(<level>,<message>)\n"
-"  level must be one of ERROR, WARNING, NOTICE, DEBUG, VERBOSE, DTMF\n";
+/*** DOCUMENTATION
+	<application name="Verbose">
+ 		<synopsis>
+			Send arbitrary text to verbose output.
+		</synopsis>
+		<syntax>
+			<parameter name="level">
+				<para>Must be an integer value.  If not specified, defaults to 0.</para>
+			</parameter>
+			<parameter name="message" required="true">
+				<para>Output text message.</para>
+			</parameter>
+		</syntax>
+		<description>
+			<para>Sends an arbitrary text message to verbose output.</para>
+		</description>
+	</application>
+	<application name="Log">
+		<synopsis>
+			Send arbitrary text to a selected log level.
+		</synopsis>
+		<syntax>
+			<parameter name="level">
+				<para>Level must be one of <literal>ERROR</literal>, <literal>WARNING</literal>, <literal>NOTICE</literal>,
+				<literal>DEBUG</literal>, <literal>VERBOSE</literal> or <literal>DTMF</literal>.</para>	
+			</parameter>
+			<parameter name="message" required="true">
+				<para>Output text message.</para>
+			</parameter>
+		</syntax>
+		<description>
+			<para>Sends an arbitrary text message to a selected log level.</para>
+		</description>
+	</application>
+ ***/
 
 
 static int verbose_exec(struct ast_channel *chan, void *data)
@@ -149,8 +176,8 @@
 {
 	int res;
 
-	res = ast_register_application(app_log, log_exec, log_synopsis, log_descrip);
-	res |= ast_register_application(app_verbose, verbose_exec, verbose_synopsis, verbose_descrip);
+	res = ast_register_application_xml(app_log, log_exec);
+	res |= ast_register_application_xml(app_verbose, verbose_exec);
 
 	return res;
 }




More information about the svn-commits mailing list