From 65afefff9c228bd52d955eda94a1b6cc968561f2 Mon Sep 17 00:00:00 2001 From: "Eliel C. Sardanons" Date: Sat, 6 Jun 2009 21:56:58 +0000 Subject: Move function SYSINFO documentation to XML. Move function SYSINFO static documentation to the new AstXML form. (issue #15245) Reported by: eliel Patches: func_sysinfo_static_conversion.txt uploaded by lmadsen (license 10) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@199374 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_sysinfo.c | 67 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 51 insertions(+), 16 deletions(-) (limited to 'funcs/func_sysinfo.c') diff --git a/funcs/func_sysinfo.c b/funcs/func_sysinfo.c index 8fdfda3f1..2d9a8dd24 100644 --- a/funcs/func_sysinfo.c +++ b/funcs/func_sysinfo.c @@ -36,6 +36,57 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 87233 $") #include "asterisk/module.h" #include "asterisk/pbx.h" +/*** DOCUMENTATION + + + Returns system information specified by parameter. + + + + + + System load average from past minute. + + + Number of active calls currently in progress. + + + System uptime in hours. + This parameter is dependant upon operating system. + + + Total usable main memory size in KiB. + This parameter is dependant upon operating system. + + + Available memory size in KiB. + This parameter is dependant upon operating system. + + + Memory used by buffers in KiB. + This parameter is dependant upon operating system. + + + Total swap space still available in KiB. + This parameter is dependant upon operating system. + + + Free swap space still available in KiB. + This parameter is dependant upon operating system. + + + Number of current processes. + This parameter is dependant upon operating system. + + + + + + Returns information from a given parameter. + + + ***/ + static int sysinfo_helper(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) { @@ -83,24 +134,8 @@ static int sysinfo_helper(struct ast_channel *chan, const char *cmd, char *data, static struct ast_custom_function sysinfo_function = { .name = "SYSINFO", - .synopsis = "Returns system information specified by parameter.", - .syntax = "SYSINFO()", .read = sysinfo_helper, .read_max = 22, - .desc = -"Returns information from a given parameter\n" -" Options:\n" -" loadavg - system load average from past minute\n" -" numcalls - number of active calls currently in progress\n" -#if defined(HAVE_SYSINFO) -" uptime - system uptime in hours\n" -" totalram - total usable main memory size in KiB\n" -" freeram - available memory size in KiB\n" -" bufferram - memory used by buffers in KiB\n" -" totalswap - total swap space size in KiB\n" -" freeswap - free swap space still available in KiB\n" -" numprocs - number of current processes\n", -#endif /* HAVE_SYSINFO */ }; static int unload_module(void) -- cgit v1.2.3