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_iconv.c | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'funcs/func_iconv.c') diff --git a/funcs/func_iconv.c b/funcs/func_iconv.c index 74f32412b..231b4880f 100644 --- a/funcs/func_iconv.c +++ b/funcs/func_iconv.c @@ -41,6 +41,32 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/utils.h" #include "asterisk/app.h" +/*** DOCUMENTATION + + + Converts charsets of strings. + + + + Input charset + + + Output charset + + + String to convert, from in-charset to out-charset + + + + Converts string from in-charset into out-charset. + For available charsets, use iconv -l on your shell command line. + Due to limitations within the API, ICONV will not currently work with + charsets with embedded NULLs. If found, the string will terminate. + + + ***/ + + /*! * Some systems define the second arg to iconv() as (const char *), * while others define it as (char *). Cast it to a (void *) to @@ -101,14 +127,7 @@ static int iconv_read(struct ast_channel *chan, const char *cmd, char *arguments static struct ast_custom_function iconv_function = { .name = "ICONV", - .synopsis = "Converts charsets of strings.", - .desc = -"Converts string from in-charset into out-charset. For available charsets,\n" -"use 'iconv -l' on your shell command line.\n" -"Note: due to limitations within the API, ICONV will not currently work with\n" -"charsets with embedded NULLs. If found, the string will terminate.\n", - .syntax = "ICONV(in-charset,out-charset,string)", - .read = iconv_read, + .read = iconv_read }; static int unload_module(void) -- cgit v1.2.1