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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 2 06:31:25 CDT 2008


Author: eliel
Date: Thu Oct  2 06:31:24 2008
New Revision: 145740

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

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

Modified: team/group/appdocsxml/apps/app_nbscat.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_nbscat.c?view=diff&rev=145740&r1=145739&r2=145740
==============================================================================
--- team/group/appdocsxml/apps/app_nbscat.c (original)
+++ team/group/appdocsxml/apps/app_nbscat.c Thu Oct  2 06:31:24 2008
@@ -43,6 +43,19 @@
 #include "asterisk/translate.h"
 #include "asterisk/app.h"
 
+/*** DOCUMENTATION
+	<application name="NBScat" language="en_US">
+		<synopsis>
+			Play an NBS local stream.
+		</synopsis>
+		<syntax />
+		<description>
+			<para>Executes nbscat to listen to the local NBS stream.
+			User can exit by pressing any key.</para>
+		</description>
+	</application>
+ ***/
+
 #define LOCAL_NBSCAT "/usr/local/bin/nbscat8k"
 #define NBSCAT "/usr/bin/nbscat8k"
 
@@ -51,13 +64,6 @@
 #endif
 
 static char *app = "NBScat";
-
-static char *synopsis = "Play an NBS local stream";
-
-static char *descrip = 
-"  NBScat(): Executes nbscat to listen to the local NBS stream.\n"
-"User can exit by pressing any key.\n";
-
 
 static int NBScatplay(int fd)
 {
@@ -204,7 +210,7 @@
 
 static int load_module(void)
 {
-	return ast_register_application(app, NBScat_exec, synopsis, descrip);
+	return ast_register_application_xml(app, NBScat_exec);
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Silly NBS Stream Application");




More information about the asterisk-commits mailing list