diff options
author | Eliel C. Sardanons <eliels@gmail.com> | 2008-11-03 01:01:25 +0000 |
---|---|---|
committer | Eliel C. Sardanons <eliels@gmail.com> | 2008-11-03 01:01:25 +0000 |
commit | 9167a2b5e164687d4c9a0618a42d0dfe30090b9b (patch) | |
tree | 81df3f713ae7c89cfb8228bf411a5e9eb673293a /apps/app_ivrdemo.c | |
parent | a67790c6f53e4b002556eca8438dbd56994ea056 (diff) |
Add XML documentation for:
- WaitForSilence()
- WaitForNoise()
- WaitForRing()
- IVRDemo()
- DBDel()
- DBDeltree()
(issue #13699)
Reported by: snuffy
Patches:
bug13699_20081016.diff uploaded by snuffy (license 35)
(With minor changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_ivrdemo.c')
-rw-r--r-- | apps/app_ivrdemo.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/apps/app_ivrdemo.c b/apps/app_ivrdemo.c index 6dbbe7191..13f4bcc9c 100644 --- a/apps/app_ivrdemo.c +++ b/apps/app_ivrdemo.c @@ -40,11 +40,22 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/lock.h" #include "asterisk/app.h" -static char *tdesc = "IVR Demo Application"; +/*** DOCUMENTATION + <application name="IVRDemo" language="en_US"> + <synopsis> + IVR Demo Application. + </synopsis> + <syntax> + <parameter name="filename" required="true" /> + </syntax> + <description> + <para>This is a skeleton application that shows you the basic structure to create your + own asterisk applications and demonstrates the IVR demo.</para> + </description> + </application> + ***/ + static char *app = "IVRDemo"; -static char *synopsis = -" This is a skeleton application that shows you the basic structure to create your\n" -"own asterisk applications and demonstrates the IVR demo.\n"; static int ivr_demo_func(struct ast_channel *chan, void *data) { @@ -109,7 +120,7 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, skel_exec, tdesc, synopsis); + return ast_register_application_xml(app, skel_exec); } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "IVR Demo Application"); |