From b1f91b97d2085cc845d0f57bd9907de50c995105 Mon Sep 17 00:00:00 2001 From: russell Date: Sat, 1 Nov 2008 21:10:07 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@153365 f38db490-d61c-443f-a65b-d21fe96a405b --- funcs/func_module.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'funcs/func_module.c') diff --git a/funcs/func_module.c b/funcs/func_module.c index 8b2326386..a7cf73164 100644 --- a/funcs/func_module.c +++ b/funcs/func_module.c @@ -28,6 +28,24 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/module.h" #include "asterisk/pbx.h" +/*** DOCUMENTATION + + + Checks if an Asterisk module is loaded in memory. + + + + Module name complete with .so + + + + Checks if a module is loaded. Use the full module name + as shown by the list in module list. + Returns 1 if module exists in memory, otherwise 0 + + + ***/ + static int ifmodule_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) { @@ -46,12 +64,7 @@ static int ifmodule_read(struct ast_channel *chan, const char *cmd, char *data, static struct ast_custom_function ifmodule_function = { .name = "IFMODULE", - .synopsis = "Checks if an Asterisk module is loaded in memory", - .syntax = "IFMODULE()", .read = ifmodule_read, - .desc = "Checks if a module is loaded. Use the full module name\n" - "as shown by the list in \"module list\". \n" - "Returns \"1\" if module exists in memory, otherwise \"0\".\n", }; -- cgit v1.2.3