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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 9 12:13:22 CDT 2008


Author: eliel
Date: Thu Oct  9 12:13:22 2008
New Revision: 147855

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

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

Modified: team/group/appdocsxml/apps/app_festival.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_festival.c?view=diff&rev=147855&r1=147854&r2=147855
==============================================================================
--- team/group/appdocsxml/apps/app_festival.c (original)
+++ team/group/appdocsxml/apps/app_festival.c Thu Oct  9 12:13:22 2008
@@ -53,15 +53,24 @@
 #define MAXLEN 180
 #define MAXFESTLEN 2048
 
+/*** DOCUMENTATION
+	<application name="Festival" language="en_US">
+		<synopsis>
+			Say text to the user.
+		</synopsis>
+		<syntax>
+			<parameter name="text" required="true" />
+			<parameter name="intkeys" />
+		</syntax>
+		<description>
+			<para>Connect to Festival, send the argument, get back the waveform, play it to the user,
+			allowing any given interrupt keys to immediately terminate and return the value, or
+			<literal>any</literal> to allow any number back (useful in dialplan).</para>
+		</description>
+	</application>
+ ***/
+
 static char *app = "Festival";
-
-static char *synopsis = "Say text to the user";
-
-static char *descrip = 
-"  Festival(text[,intkeys]):  Connect to Festival, send the argument, get back the waveform,\n"
-"play it to the user, allowing any given interrupt keys to immediately terminate and return\n"
-"the value, or 'any' to allow any number back (useful in dialplan)\n";
-
 
 static char *socket_receive_file_to_buff(int fd, int *size)
 {
@@ -526,7 +535,7 @@
 		return AST_MODULE_LOAD_DECLINE;
 	}
 	ast_config_destroy(cfg);
-	return ast_register_application(app, festival_exec, synopsis, descrip);
+	return ast_register_application_xml(app, festival_exec);
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Simple Festival Interface");




More information about the svn-commits mailing list