diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-06 16:57:35 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-06 16:57:35 +0000 |
commit | 039bf2e7e5b8e0a35867b6f00641a351a95d4fbc (patch) | |
tree | ef530ce37337fc938fac90927b95b5dac73e074a /include/parserutils/input | |
parent | dc43c01c1562f6bef60e5ee6725e25c9b0c77a31 (diff) | |
download | libparserutils-039bf2e7e5b8e0a35867b6f00641a351a95d4fbc.tar.gz libparserutils-039bf2e7e5b8e0a35867b6f00641a351a95d4fbc.tar.bz2 |
Correct return value when we can't find a charset in inputstream constructor.
Add new API to enable on-the-fly changing of the input charset. This is only possible if no data has been read from the stream.
svn path=/trunk/libparserutils/; revision=5969
Diffstat (limited to 'include/parserutils/input')
-rw-r--r-- | include/parserutils/input/inputstream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/parserutils/input/inputstream.h b/include/parserutils/input/inputstream.h index 9c0be7d..fe67aeb 100644 --- a/include/parserutils/input/inputstream.h +++ b/include/parserutils/input/inputstream.h @@ -169,6 +169,10 @@ static inline void parserutils_inputstream_advance( /* Read the document charset */ const char *parserutils_inputstream_read_charset( parserutils_inputstream *stream, uint32_t *source); +/* Change the document charset */ +parserutils_error parserutils_inputstream_change_charset( + parserutils_inputstream *stream, + const char *enc, uint32_t source); #endif |