aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-07-28 00:52:33 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-07-28 00:52:33 +0800
commitfd83a09d5ced1b3a89dcf122e7ec47d5985de062 (patch)
tree6cdbd251a83c7140e6efb1f4177c4194751ec234 /mail/em-utils.c
parent34b244a0410ce78413a41c60d460d65d715281c1 (diff)
downloadgsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.tar
gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.tar.gz
gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.tar.bz2
gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.tar.lz
gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.tar.xz
gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.tar.zst
gsoc2013-evolution-fd83a09d5ced1b3a89dcf122e7ec47d5985de062.zip
added len parameter to em_utils_part_to_html and em_utils_message_to_html.
2004-07-23 Radek Doulik <rodo@ximian.com> * added len parameter to em_utils_part_to_html and em_utils_message_to_html. it is used to return length of returned buffer. we use that info later when setting composer body content. svn path=/trunk/; revision=26747
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 1fea720579..8e47f68254 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1365,7 +1365,7 @@ em_utils_get_proxy_uri(void)
* Return Value: The part in displayable html format.
**/
char *
-em_utils_part_to_html(CamelMimePart *part)
+em_utils_part_to_html(CamelMimePart *part, ssize_t *len)
{
EMFormatQuote *emfq;
CamelStreamMem *mem;
@@ -1385,6 +1385,8 @@ em_utils_part_to_html(CamelMimePart *part)
camel_object_unref (mem);
text = buf->data;
+ if (len)
+ *len = buf->len;
g_byte_array_free (buf, FALSE);
return text;
@@ -1402,7 +1404,7 @@ em_utils_part_to_html(CamelMimePart *part)
* Return value: The html version.
**/
char *
-em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32 flags)
+em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32 flags, ssize_t *len)
{
EMFormatQuote *emfq;
CamelStreamMem *mem;
@@ -1422,6 +1424,8 @@ em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32
camel_object_unref (mem);
text = buf->data;
+ if (len)
+ *len = buf->len;
g_byte_array_free (buf, FALSE);
return text;