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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Oct 7 09:21:30 CDT 2008


Author: eliel
Date: Tue Oct  7 09:21:30 2008
New Revision: 147095

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

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

Modified: team/group/appdocsxml/apps/app_dahdiscan.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_dahdiscan.c?view=diff&rev=147095&r1=147094&r2=147095
==============================================================================
--- team/group/appdocsxml/apps/app_dahdiscan.c (original)
+++ team/group/appdocsxml/apps/app_dahdiscan.c Tue Oct  7 09:21:30 2008
@@ -52,15 +52,23 @@
 #include "asterisk/say.h"
 #include "asterisk/options.h"
 
+/*** DOCUMENTATION
+	<application name="DAHDIScan" language="en_US">
+		<synopsis>
+			Scan DAHDI channels to monitor calls.
+		</synopsis>
+		<syntax>
+			<parameter name="group">
+				<para>Limit scanning to a channel <replaceable>group</replaceable> by setting this option.</para>
+			</parameter>
+		</syntax>
+		<description>
+			<para>Allows a call center manager to monitor DAHDI channels in a
+			convenient way.  Use <literal>#</literal> to select the next channel and use <literal>*</literal> to exit.</para>
+		</description>
+	</application>
+ ***/
 static char *app = "DAHDIScan";
-
-static char *synopsis = "Scan DAHDI channels to monitor calls";
-
-static char *descrip =
-"  DAHDIScan([group]) allows a call center manager to monitor DAHDI channels in\n"
-"a convenient way.  Use '#' to select the next channel and use '*' to exit\n"
-"Limit scanning to a channel GROUP by setting the option group argument.\n";
-
 
 #define CONF_SIZE 160
 
@@ -363,7 +371,7 @@
 
 static int load_module(void)
 {
-	return ((ast_register_application(app, conf_exec, synopsis, descrip)) ? AST_MODULE_LOAD_FAILURE : AST_MODULE_LOAD_SUCCESS);
+	return ((ast_register_application_xml(app, conf_exec)) ? AST_MODULE_LOAD_FAILURE : AST_MODULE_LOAD_SUCCESS);
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Scan DAHDI channels application");




More information about the svn-commits mailing list