diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-11-01 21:10:07 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-11-01 21:10:07 +0000 |
commit | 5b168ee34babe562be856ec8f1dd14c0abd7c1a5 (patch) | |
tree | 9c836ac808552d20be6bd2baa3a3c29f642eda53 /apps/app_dictate.c | |
parent | 1fef0f63bbbde9530837995c8790b839f73b74e7 (diff) |
Merge changes from team/group/appdocsxml
This commit introduces the first phase of an effort to manage documentation of the
interfaces in Asterisk in an XML format. Currently, a new format is available for
applications and dialplan functions. A good number of conversions to the new format
are also included.
For more information, see the following message to asterisk-dev:
http://lists.digium.com/pipermail/asterisk-dev/2008-October/034968.html
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dictate.c')
-rw-r--r-- | apps/app_dictate.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/apps/app_dictate.c b/apps/app_dictate.c index 86ccad875..b780182e3 100644 --- a/apps/app_dictate.c +++ b/apps/app_dictate.c @@ -40,11 +40,22 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/say.h" #include "asterisk/app.h" -static char *app = "Dictate"; -static char *synopsis = "Virtual Dictation Machine"; -static char *desc = " Dictate([<base_dir>[,<filename>]])\n" -"Start dictation machine using optional base dir for files.\n"; +/*** DOCUMENTATION + <application name="Dictate" language="en_US"> + <synopsis> + Virtual Dictation Machine. + </synopsis> + <syntax> + <parameter name="base_dir" /> + <parameter name="filename" /> + </syntax> + <description> + <para>Start dictation machine using optional <replaceable>base_dir</replaceable> for files.</para> + </description> + </application> + ***/ +static char *app = "Dictate"; typedef enum { DFLAG_RECORD = (1 << 0), @@ -332,7 +343,7 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, dictate_exec, synopsis, desc); + return ast_register_application_xml(app, dictate_exec); } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Virtual Dictation Machine"); |