diff options
author | Dave Beckett <dave@dajobe.org> | 2010-02-03 13:01:52 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2010-02-03 13:01:52 -0800 |
commit | eb03a45e85a5fe9b58b62f62bf4c97119909f320 (patch) | |
tree | 207f50d9b33c4c774b606cb9877cc0dc3c786584 /src/raptor.h | |
parent | 076e4982b65d7b0858c1ce0b07fc8be5822f5800 (diff) | |
download | raptor-eb03a45e85a5fe9b58b62f62bf4c97119909f320.tar.gz |
iostream write_end now returns a status code
typedef raptor_iostream_write_end_func returns an int
(raptor_iostream_write_end): Returns an int.
(raptor_filename_iostream_write_end): Update file write handlers to
return fclose value.
Diffstat (limited to 'src/raptor.h')
-rw-r--r-- | src/raptor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raptor.h b/src/raptor.h index 40ccfc84..0f0c3462 100644 --- a/src/raptor.h +++ b/src/raptor.h @@ -1236,7 +1236,7 @@ typedef int (*raptor_iostream_write_bytes_func) (void *context, const void *ptr, * Handler function for implementing raptor_iostream_write_end(). * */ -typedef void (*raptor_iostream_write_end_func) (void *context); +typedef int (*raptor_iostream_write_end_func) (void *context); /** * raptor_iostream_read_bytes_func: @@ -1318,7 +1318,7 @@ int raptor_iostream_write_bytes(raptor_iostream *iostr, const void *ptr, size_t RAPTOR_API int raptor_iostream_write_byte(raptor_iostream *iostr, const int byte); RAPTOR_API -void raptor_iostream_write_end(raptor_iostream *iostr); +int raptor_iostream_write_end(raptor_iostream *iostr); RAPTOR_API int raptor_iostream_write_string(raptor_iostream *iostr, const void *string); RAPTOR_API |