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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 7 10:36:20 CDT 2008


Author: eliel
Date: Tue Oct  7 10:36:20 2008
New Revision: 147144

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

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

Modified: team/group/appdocsxml/apps/app_dictate.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_dictate.c?view=diff&rev=147144&r1=147143&r2=147144
==============================================================================
--- team/group/appdocsxml/apps/app_dictate.c (original)
+++ team/group/appdocsxml/apps/app_dictate.c Tue Oct  7 10:36:20 2008
@@ -40,11 +40,22 @@
 #include "asterisk/say.h"
 #include "asterisk/app.h"
 
+/*** DOCUMENTATION
+	<application name="Dictate" language="en_US">
+		<synopsis>
+			Virtual Dictation Machine.
+		</synopsis>
+		<syntax>
+			<parameter name="base_dir" />
+			<parameter name="filename" />
+		</syntax>
+		<description>
+			<para>Start dictation machine using optional <replaceable>base_dir</replaceable> for files.</para>
+		</description>
+	</application>
+ ***/
+
 static char *app = "Dictate";
-static char *synopsis = "Virtual Dictation Machine";
-static char *desc = "  Dictate([<base_dir>[,<filename>]])\n"
-"Start dictation machine using optional base dir for files.\n";
-
 
 typedef enum {
 	DFLAG_RECORD = (1 << 0),
@@ -332,7 +343,7 @@
 
 static int load_module(void)
 {
-	return ast_register_application(app, dictate_exec, synopsis, desc);
+	return ast_register_application_xml(app, dictate_exec);
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Virtual Dictation Machine");




More information about the asterisk-commits mailing list