aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-charset-map.h
diff options
context:
space:
mode:
author2 <NotZed@Ximian.com>2001-10-03 08:12:49 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-03 08:12:49 +0800
commit65014a74aa55209e8e5b65549be26645dabd7cba (patch)
treeb64e6409bde5e0b0310df1928b30fd3d85c831cd /camel/camel-charset-map.h
parent7d2487975feeee0be69890e92fe3eca609fe25c3 (diff)
downloadgsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.tar
gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.tar.gz
gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.tar.bz2
gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.tar.lz
gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.tar.xz
gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.tar.zst
gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.zip
Change to camel_charset_iconv_open/close.
2001-10-02 <NotZed@Ximian.com> * camel-sasl-digest-md5.c (digest_response): Change to camel_charset_iconv_open/close. * camel-pgp-context.c (pgp_verify): Change to camel_charset_iconv_open/close. * camel-mime-part-utils.c (convert_buffer): Change to camel_charset_iconv_open(). * camel-mime-filter-charset.c (camel_mime_filter_charset_new_convert, finalise): Change to camel_charset_iconv_open, etc. * camel-mime-utils.c: Use the camel_charset_iconv_open/close() functions to open/close it. * camel-charset-map.c (camel_charset_iconv_open): New function, wrap iconv_open, so we can cache ic's. (camel_charset_iconv_close): Likewise for close. (camel_charset_map_init,shutdown): Init/free iconv cache. svn path=/trunk/; revision=13361
Diffstat (limited to 'camel/camel-charset-map.h')
-rw-r--r--camel/camel-charset-map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/camel/camel-charset-map.h b/camel/camel-charset-map.h
index 0bf2c706c5..749f02dfc2 100644
--- a/camel/camel-charset-map.h
+++ b/camel/camel-charset-map.h
@@ -21,6 +21,8 @@
#ifndef _CAMEL_CHARSET_MAP_H
#define _CAMEL_CHARSET_MAP_H
+#include <iconv.h>
+
typedef struct _CamelCharset CamelCharset;
struct _CamelCharset {
@@ -41,4 +43,7 @@ const char *camel_charset_locale_name (void);
const char *camel_charset_to_iconv (const char *name);
+iconv_t camel_charset_iconv_open(const char *to, const char *from);
+void camel_charset_iconv_close(iconv_t ic);
+
#endif /* ! _CAMEL_CHARSET_MAP_H */