diff options
author | David Robillard <d@drobilla.net> | 2021-08-13 19:31:26 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 828c1018f38bab9a930cecce64646366d051d39b (patch) | |
tree | 38a60777520efb17017ed62fe3b299ba94aaccf2 /include/serd/stream.h | |
parent | a083c64f506175029280ff76defa0ad7d7ae2ea0 (diff) | |
download | serd-828c1018f38bab9a930cecce64646366d051d39b.tar.gz serd-828c1018f38bab9a930cecce64646366d051d39b.tar.bz2 serd-828c1018f38bab9a930cecce64646366d051d39b.zip |
Simplify output stream API
Diffstat (limited to 'include/serd/stream.h')
-rw-r--r-- | include/serd/stream.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/include/serd/stream.h b/include/serd/stream.h index f59e2c9d..a6fabb69 100644 --- a/include/serd/stream.h +++ b/include/serd/stream.h @@ -24,24 +24,6 @@ SERD_BEGIN_DECLS */ /** - Function to detect I/O stream errors. - - Identical semantics to `ferror`. - - @return Non-zero if `stream` has encountered an error. -*/ -typedef int (*SerdStreamErrorFunc)(void* ZIX_NONNULL stream); - -/** - Function to close an I/O stream. - - Identical semantics to `fclose`. - - @return Non-zero if `stream` has encountered an error. -*/ -typedef int (*SerdStreamCloseFunc)(void* ZIX_NONNULL stream); - -/** Function for reading input bytes from a stream. This has identical semantics to `fread`, but may set `errno` for more @@ -62,7 +44,7 @@ typedef size_t (*SerdReadFunc)(void* ZIX_NONNULL buf, Function for writing output bytes to a stream. This has identical semantics to `fwrite`, but may set `errno` for more - informative error reporting than supported by #SerdStreamErrorFunc. + informative error reporting than supported by #SerdErrorFunc. @param buf Input buffer. @param size Size of a single element of data in bytes (always 1). |