[asterisk-addons-commits] tilghman: branch 1.6.1 r693 - /branches/1.6.1/apps/app_saycountpl.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Thu Nov 13 12:39:57 CST 2008


Author: tilghman
Date: Thu Nov 13 12:39:56 2008
New Revision: 693

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=693
Log:
Revert XML in this branch, since the XML isn't in Asterisk-1.6.1

Modified:
    branches/1.6.1/apps/app_saycountpl.c

Modified: branches/1.6.1/apps/app_saycountpl.c
URL: http://svn.digium.com/view/asterisk-addons/branches/1.6.1/apps/app_saycountpl.c?view=diff&rev=693&r1=692&r2=693
==============================================================================
--- branches/1.6.1/apps/app_saycountpl.c (original)
+++ branches/1.6.1/apps/app_saycountpl.c Thu Nov 13 12:39:56 2008
@@ -16,27 +16,15 @@
 #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 *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)
 {
@@ -106,7 +94,7 @@
 
 static int load_module(void)
 {
-	return ast_register_application_xml(app, sayword_exec);
+	return ast_register_application(app, sayword_exec, synopsis, descrip);
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Say polish counting words");




More information about the asterisk-addons-commits mailing list