[asterisk-commits] eliel: branch group/appdocsxml r147808 - /team/group/appdocsxml/apps/app_skel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 9 09:46:38 CDT 2008
Author: eliel
Date: Thu Oct 9 09:46:37 2008
New Revision: 147808
URL: http://svn.digium.com/view/asterisk?view=rev&rev=147808
Log:
Introduce Skel() example application XML documentation.
Patch by: snuffy (snuff-home, snuff-work). <- Thanks!
Modified:
team/group/appdocsxml/apps/app_skel.c
Modified: team/group/appdocsxml/apps/app_skel.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_skel.c?view=diff&rev=147808&r1=147807&r2=147808
==============================================================================
--- team/group/appdocsxml/apps/app_skel.c (original)
+++ team/group/appdocsxml/apps/app_skel.c Thu Oct 9 09:46:37 2008
@@ -41,11 +41,35 @@
#include "asterisk/lock.h"
#include "asterisk/app.h"
+/*** DOCUMENTATION
+ <application name="Skel" language="en_US">
+ <synopsis>
+ Simple one line explaination.
+ </synopsis>
+ <syntax>
+ <parameter name="dummy" required="true"/>
+ <parameter name="options">
+ <optionlist>
+ <option name="a">
+ <para>Option A.</para>
+ </option>
+ <option name="b">
+ <para>Option B.</para>
+ </option>
+ <option name="c">
+ <para>Option C.</para>
+ </option>
+ </optionlist>
+ </parameter>
+ </syntax>
+ <description>
+ <para>This application is a template to build other applications from.
+ It shows you the basic structure to create your own Asterisk applications.</para>
+ </description>
+ </application>
+ ***/
+
static char *app = "Skel";
-static char *synopsis =
-"Skeleton application.";
-static char *descrip = "This application is a template to build other applications from.\n"
- " It shows you the basic structure to create your own Asterisk applications.\n";
enum {
OPTION_A = (1 << 0),
@@ -114,7 +138,7 @@
static int load_module(void)
{
- return ast_register_application(app, app_exec, synopsis, descrip) ?
+ return ast_register_application_xml(app, app_exec) ?
AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS;
}
More information about the asterisk-commits
mailing list