diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-08 23:08:30 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-08 23:08:30 +0000 |
commit | e53a5011237467c73c72b338570e4a455d2d1ef6 (patch) | |
tree | 1f580e130a9985f98c0fd6efb88f2c1071b1a7ca /include/parserutils/charset/codec.h | |
parent | 7836409aade83179b43dd7ad0699d9edf68aad90 (diff) | |
download | libparserutils-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/codec.h')
-rw-r--r-- | include/parserutils/charset/codec.h | 8 |
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( |