[asterisk-commits] eliel: branch group/appdocsxml r145966 - /team/group/appdocsxml/apps/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 2 14:55:52 CDT 2008
Author: eliel
Date: Thu Oct 2 14:55:52 2008
New Revision: 145966
URL: http://svn.digium.com/view/asterisk?view=rev&rev=145966
Log:
Introduce Milliwatt() XML documentation.
Modified:
team/group/appdocsxml/apps/app_milliwatt.c
Modified: team/group/appdocsxml/apps/app_milliwatt.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_milliwatt.c?view=diff&rev=145966&r1=145965&r2=145966
==============================================================================
--- team/group/appdocsxml/apps/app_milliwatt.c (original)
+++ team/group/appdocsxml/apps/app_milliwatt.c Thu Oct 2 14:55:52 2008
@@ -37,16 +37,29 @@
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
+/*** DOCUMENTATION
+ <application name="Milliwatt" language="en_US">
+ <synopsis>
+ Generate a Constant 1004Hz tone at 0dbm (mu-law).
+ </synopsis>
+ <syntax>
+ <parameter name="options">
+ <optionlist>
+ <option name="o">
+ <para>Generate the tone at 1000Hz like previous version.</para>
+ </option>
+ </optionlist>
+ </parameter>
+ </syntax>
+ <description>
+ <para>Previous versions of this application generated the tone at 1000Hz. If for
+ some reason you would prefer that behavior, supply the <literal>o</literal> option to get the
+ old behavior.</para>
+ </description>
+ </application>
+ ***/
+
static char *app = "Milliwatt";
-
-static char *synopsis = "Generate a Constant 1004Hz tone at 0dbm (mu-law)";
-
-static char *descrip =
-" Milliwatt([options]): Generate a Constant 1004Hz tone at 0dbm.\n"
-"Previous versions of this application generated the tone at 1000Hz. If for\n"
-"some reason you would prefer that behavior, supply the 'o' option to get the\n"
-"old behavior.\n"
-"";
static char digital_milliwatt[] = {0x1e,0x0b,0x0b,0x1e,0x9e,0x8b,0x8b,0x9e} ;
@@ -161,7 +174,7 @@
static int load_module(void)
{
- return ast_register_application(app, milliwatt_exec, synopsis, descrip);
+ return ast_register_application_xml(app, milliwatt_exec);
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Digital Milliwatt (mu-law) Test Application");
More information about the asterisk-commits
mailing list