summaryrefslogtreecommitdiff
path: root/include/parserutils/charset
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-08 23:08:30 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-08 23:08:30 +0000
commite53a5011237467c73c72b338570e4a455d2d1ef6 (patch)
tree1f580e130a9985f98c0fd6efb88f2c1071b1a7ca /include/parserutils/charset
parent7836409aade83179b43dd7ad0699d9edf68aad90 (diff)
downloadlibparserutils-e53a5011237467c73c72b338570e4a455d2d1ef6.tar.gz
libparserutils-e53a5011237467c73c72b338570e4a455d2d1ef6.tar.bz2
Return errors from constructors and destructors.
svn path=/trunk/libparserutils/; revision=5652
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(