[asterisk-commits] eliel: branch group/appdocsxml r145379 - /team/group/appdocsxml/funcs/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 1 08:49:12 CDT 2008
Author: eliel
Date: Wed Oct 1 08:49:11 2008
New Revision: 145379
URL: http://svn.digium.com/view/asterisk?view=rev&rev=145379
Log:
Introduce SHA1 function XML documentation.
Modified:
team/group/appdocsxml/funcs/func_sha1.c
Modified: team/group/appdocsxml/funcs/func_sha1.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/funcs/func_sha1.c?view=diff&rev=145379&r1=145378&r2=145379
==============================================================================
--- team/group/appdocsxml/funcs/func_sha1.c (original)
+++ team/group/appdocsxml/funcs/func_sha1.c Wed Oct 1 08:49:11 2008
@@ -31,6 +31,25 @@
#include "asterisk/module.h"
#include "asterisk/pbx.h"
+/*** DOCUMENTATION
+ <function name="SHA1" language="en_US">
+ <synopsis>
+ Computes a SHA1 digest.
+ </synopsis>
+ <syntax>
+ <parameter name="data" required="true">
+ <para>Input string</para>
+ </parameter>
+ </syntax>
+ <description>
+ <para>Generate a SHA1 digest via the SHA1 algorythm.</para>
+ <para>Example: Set(sha1hash=${SHA1(junky)})</para>
+ <para>Sets the asterisk variable sha1hash to the string <literal>60fa5675b9303eb62f99a9cd47f9f5837d18f9a0</literal>
+ which is known as his hash</para>
+ </description>
+ </function>
+ ***/
+
static int sha1(struct ast_channel *chan, const char *cmd, char *data,
char *buf, size_t len)
{
@@ -54,13 +73,7 @@
static struct ast_custom_function sha1_function = {
.name = "SHA1",
- .synopsis = "Computes a SHA1 digest",
- .syntax = "SHA1(<data>)",
.read = sha1,
- .desc = "Generate a SHA1 digest via the SHA1 algorythm.\n"
- " Example: Set(sha1hash=${SHA1(junky)})\n"
- " Sets the asterisk variable sha1hash to the string '60fa5675b9303eb62f99a9cd47f9f5837d18f9a0'\n"
- " which is known as his hash\n",
};
static int unload_module(void)
More information about the asterisk-commits
mailing list