[svn-commits] bkruse: branch group/appdocsxml r146008 - /team/group/appdocsxml/apps/app_mp3.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 2 17:35:17 CDT 2008


Author: bkruse
Date: Thu Oct  2 17:35:16 2008
New Revision: 146008

URL: http://svn.digium.com/view/asterisk?view=rev&rev=146008
Log:
Yes, it is true, bkruse is hacking at appdocsxml again!

Things got kind of busy, so I had to stop, but I am converting
and going to help the cause again, besides just the spark at the
beggining of the project. Great job eliel and mvanbaak, for taking
to the next step, a few "next steps", even.

Converted app_mp3 to XML

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

Modified: team/group/appdocsxml/apps/app_mp3.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_mp3.c?view=diff&rev=146008&r1=146007&r2=146008
==============================================================================
--- team/group/appdocsxml/apps/app_mp3.c (original)
+++ team/group/appdocsxml/apps/app_mp3.c Thu Oct  2 17:35:16 2008
@@ -44,15 +44,25 @@
 #define LOCAL_MPG_123 "/usr/local/bin/mpg123"
 #define MPG_123 "/usr/bin/mpg123"
 
+/*** DOCUMENTATION
+	<application name="MP3Player" language="en_US">
+		<synopsis>
+			Play an MP3 file or stream.
+		</synopsis>
+		<syntax>
+			<parameter name="Location" required="true">
+				<para>Location of the file to be played.
+				(argument passed to mpg123)</para>
+			</parameter>
+		</syntax>
+		<description>
+			<para>Executes mpg123 to play the given location, which typically would be a filename or a URL.
+			User can exit by pressing any key on the dialpad, or by hanging up.</para>
+		</description>
+	</application>
+
+ ***/
 static char *app = "MP3Player";
-
-static char *synopsis = "Play an MP3 file or stream";
-
-static char *descrip = 
-"  MP3Player(location): Executes mpg123 to play the given location,\n"
-"which typically would be a filename or a URL. User can exit by pressing\n"
-"any key on the dialpad, or by hanging up."; 
-
 
 static int mp3play(char *filename, int fd)
 {
@@ -221,7 +231,7 @@
 
 static int load_module(void)
 {
-	return ast_register_application(app, mp3_exec, synopsis, descrip);
+	return ast_register_application_xml(app, mp3_exec);
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Silly MP3 Application");




More information about the svn-commits mailing list