summaryrefslogtreecommitdiff
path: root/include/parserutils/charset
diff options
context:
space:
mode:
Diffstat (limited to 'include/parserutils/charset')
-rw-r--r--include/parserutils/charset/codec.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/parserutils/charset/codec.h b/include/parserutils/charset/codec.h
index 9bf2ce7..d79740b 100644
--- a/include/parserutils/charset/codec.h
+++ b/include/parserutils/charset/codec.h
@@ -84,10 +84,12 @@ typedef union parserutils_charset_codec_optparams {
/* Create a charset codec */
-parserutils_charset_codec *parserutils_charset_codec_create(const char *charset,
- parserutils_alloc alloc, void *pw);
+parserutils_error parserutils_charset_codec_create(const char *charset,
+ parserutils_alloc alloc, void *pw,
+ parserutils_charset_codec **codec);
/* Destroy a charset codec */
-void parserutils_charset_codec_destroy(parserutils_charset_codec *codec);
+parserutils_error parserutils_charset_codec_destroy(
+ parserutils_charset_codec *codec);
/* Configure a charset codec */
parserutils_error parserutils_charset_codec_setopt(