From 5b168ee34babe562be856ec8f1dd14c0abd7c1a5 Mon Sep 17 00:00:00 2001 From: Russell Bryant 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: https://origsvn.digium.com/svn/asterisk/trunk@153365 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/term.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include/asterisk/term.h') diff --git a/include/asterisk/term.h b/include/asterisk/term.h index 3277f0042..8c6cab43e 100644 --- a/include/asterisk/term.h +++ b/include/asterisk/term.h @@ -64,6 +64,28 @@ extern "C" { char *term_color(char *outbuf, const char *inbuf, int fgcolor, int bgcolor, int maxout); +/*! + * \brief Append a color sequence to an ast_str + * + * \param str The string to append to + * \param fgcolor foreground color + * \param bgcolor background color + * + * \retval 0 success + * \retval -1 failure + */ +int ast_term_color_code(struct ast_str **str, int fgcolor, int bgcolor); + +/*! + * \brief Write a color sequence to a string + * + * \param outbuf the location to write to + * \param fgcolor foreground color + * \param bgcolor background color + * \param maxout maximum number of characters to write + * + * \return outbuf + */ char *term_color_code(char *outbuf, int fgcolor, int bgcolor, int maxout); char *term_strip(char *outbuf, char *inbuf, int maxout); -- cgit v1.2.3