aboutsummaryrefslogtreecommitdiff
path: root/src/codeconv.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-17 10:02:26 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-17 10:02:26 +0000
commit959bdb992afe0d2964381255da7f7eab6aa9de61 (patch)
tree37d5b8594be5d15c91faa9e34525b6938e938650 /src/codeconv.h
parent6127a936645cf2d2d4fcdfd1461f4d1f7268a3b7 (diff)
made every code conversion API allocate new memory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@180 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/codeconv.h')
-rw-r--r--src/codeconv.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/codeconv.h b/src/codeconv.h
index 65955d0d..c322f61a 100644
--- a/src/codeconv.h
+++ b/src/codeconv.h
@@ -92,7 +92,7 @@ typedef enum
C_TCVN5712_1
} CharSet;
-typedef void (*CodeConvFunc) (gchar *outbuf, gint outlen, const gchar *inbuf);
+typedef gchar *(*CodeConvFunc) (const gchar *inbuf);
struct _CodeConverter
{
@@ -171,17 +171,15 @@ struct _CodeConverter
//void conv_mb_alnum(gchar *str);
-CharSet conv_guess_ja_encoding(const gchar *str);
+CharSet conv_guess_ja_encoding (const gchar *str);
-void conv_utf8todisp (gchar *outbuf, gint outlen, const gchar *inbuf);
-void conv_localetodisp (gchar *outbuf, gint outlen, const gchar *inbuf);
+gchar *conv_utf8todisp (const gchar *inbuf);
+gchar *conv_localetodisp (const gchar *inbuf);
CodeConverter *conv_code_converter_new (const gchar *src_encoding,
const gchar *dest_encoding);
void conv_code_converter_destroy (CodeConverter *conv);
-gint conv_convert (CodeConverter *conv,
- gchar *outbuf,
- gint outlen,
+gchar *conv_convert (CodeConverter *conv,
const gchar *inbuf);
gchar *conv_codeset_strdup (const gchar *inbuf,