[asterisk-commits] eliel: branch group/appdocsxml r145185 - /team/group/appdocsxml/funcs/func_md5.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 30 06:57:11 CDT 2008


Author: eliel
Date: Tue Sep 30 06:57:10 2008
New Revision: 145185

URL: http://svn.digium.com/view/asterisk?view=rev&rev=145185
Log:
Implements MD5 function xml documentation.

Modified:
    team/group/appdocsxml/funcs/func_md5.c

Modified: team/group/appdocsxml/funcs/func_md5.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/funcs/func_md5.c?view=diff&rev=145185&r1=145184&r2=145185
==============================================================================
--- team/group/appdocsxml/funcs/func_md5.c (original)
+++ team/group/appdocsxml/funcs/func_md5.c Tue Sep 30 06:57:10 2008
@@ -33,6 +33,20 @@
 #include "asterisk/module.h"
 #include "asterisk/pbx.h"
 
+/*** DOCUMENTATION
+	<function name="MD5" language="en_US">
+		<synopsis>
+			Computes an MD5 digest.
+		</synopsis>
+		<syntax>
+			<parameter name="data" required="true" />
+		</syntax>
+		<description>
+			Computes an MD5 digest.
+		</description>
+	</function>
+ ***/
+
 static int md5(struct ast_channel *chan, const char *cmd, char *data,
 	       char *buf, size_t len)
 {
@@ -49,8 +63,6 @@
 
 static struct ast_custom_function md5_function = {
 	.name = "MD5",
-	.synopsis = "Computes an MD5 digest",
-	.syntax = "MD5(<data>)",
 	.read = md5,
 };
 




More information about the asterisk-commits mailing list