[svn-commits] eliel: trunk r686 - /trunk/apps/app_saycountpl.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Nov 6 11:46:01 CST 2008
Author: eliel
Date: Thu Nov 6 11:46:00 2008
New Revision: 686
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=686
Log:
Add SayCountPL() application XML documentation.
Modified:
trunk/apps/app_saycountpl.c
Modified: trunk/apps/app_saycountpl.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/apps/app_saycountpl.c?view=diff&rev=686&r1=685&r2=686
==============================================================================
--- trunk/apps/app_saycountpl.c (original)
+++ trunk/apps/app_saycountpl.c Thu Nov 6 11:46:00 2008
@@ -16,15 +16,27 @@
#include <asterisk/lock.h>
#include <asterisk/app.h>
+/*** DOCUMENTATION
+ <application name="SayCountPL" language="en_US">
+ <synopsis>
+ Say Polish counting words.
+ </synopsis>
+ <syntax>
+ <parameter name="word1" required="true" />
+ <parameter name="word2" required="true" />
+ <parameter name="word5" required="true" />
+ <parameter name="number" required="true" />
+ </syntax>
+ <description>
+ <para>Polish grammar has some funny rules for counting words. for example 1 zloty,
+ 2 zlote, 5 zlotych. This application will take the words for 1, 2-4 and 5 and
+ decide based on grammar rules which one to use with the number you pass to it.</para>
+ <para>Example: SayCountPL(zloty,zlote,zlotych,122) will give: zlote</para>
+ </description>
+ </application>
+
+ ***/
static char *app = "SayCountPL";
-
-static char *synopsis = "Say Polish counting words";
-
-static char *descrip =
-"Polish grammar has some funny rules for counting words. for example 1 zloty,\n"
-"2 zlote, 5 zlotych. This application will take the words for 1, 2-4 and 5 and\n"
-"decide based on grammar rules which one to use with the number you pass to it.\n\n"
-"Example: SayCountPL(zloty,zlote,zlotych,122) will give: zlote\n";
static int saywords(struct ast_channel *chan, char *word1, char *word2, char *word5, int num)
{
@@ -94,7 +106,7 @@
static int load_module(void)
{
- return ast_register_application(app, sayword_exec, synopsis, descrip);
+ return ast_register_application_xml(app, sayword_exec);
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Say polish counting words");
More information about the svn-commits
mailing list