diff options
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-iconv.c | 5 | ||||
-rw-r--r-- | e-util/e-iconv.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c index c22c9915b2..bd85a7f599 100644 --- a/e-util/e-iconv.c +++ b/e-util/e-iconv.c @@ -419,6 +419,11 @@ iconv_t e_iconv_open(const char *oto, const char *ofrom) return ip; } +size_t e_iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, char ** outbuf, size_t *outbytesleft) +{ + return iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft); +} + void e_iconv_close(iconv_t ip) { diff --git a/e-util/e-iconv.h b/e-util/e-iconv.h index dee9ce3573..9bdeba8e30 100644 --- a/e-util/e-iconv.h +++ b/e-util/e-iconv.h @@ -32,6 +32,7 @@ extern "C" { const char *e_iconv_charset_name(const char *charset); iconv_t e_iconv_open(const char *oto, const char *ofrom); +size_t e_iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, char ** outbuf, size_t *outbytesleft); void e_iconv_close(iconv_t ip); const char *e_iconv_locale_charset(void); |