[asterisk-commits] eliel: branch group/appdocsxml r145845 - /team/group/appdocsxml/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 2 12:15:20 CDT 2008


Author: eliel
Date: Thu Oct  2 12:15:20 2008
New Revision: 145845

URL: http://svn.digium.com/view/asterisk?view=rev&rev=145845
Log:
Introduce DumpChan() application XML documentation.

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

Modified: team/group/appdocsxml/apps/app_dumpchan.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_dumpchan.c?view=diff&rev=145845&r1=145844&r2=145845
==============================================================================
--- team/group/appdocsxml/apps/app_dumpchan.c (original)
+++ team/group/appdocsxml/apps/app_dumpchan.c Thu Oct  2 12:15:20 2008
@@ -36,15 +36,26 @@
 #include "asterisk/module.h"
 #include "asterisk/channel.h"
 
+/*** DOCUMENTATION
+	<application name="DumpChan" language="en_US">
+		<synopsis>
+			Dump Info About The Calling Channel.
+		</synopsis>
+		<syntax>
+			<parameter name="level">
+				<para>Minimun verbose level</para>
+			</parameter>
+		</syntax>
+		<description>
+			<para>Displays information on channel and listing of all channel
+			variables. If <replaceable>level</replaceable> is specified, output is only
+			displayed when the verbose level is currently set to that number
+			or greater.</para>
+		</description>
+	</application>
+ ***/
+
 static char *app = "DumpChan";
-static char *synopsis = "Dump Info About The Calling Channel";
-static char *desc =
-	"   DumpChan([<min_verbose_level>])\n"
-	"Displays information on channel and listing of all channel\n"
-	"variables. If min_verbose_level is specified, output is only\n"
-	"displayed when the verbose level is currently set to that number\n"
-	"or greater. \n";
-
 
 static int serialize_showchan(struct ast_channel *c, char *buf, size_t size)
 {
@@ -156,7 +167,7 @@
 
 static int load_module(void)
 {
-	return ast_register_application(app, dumpchan_exec, synopsis, desc);
+	return ast_register_application_xml(app, dumpchan_exec);
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Dump Info About The Calling Channel");




More information about the asterisk-commits mailing list