diff options
author | David Robillard <d@drobilla.net> | 2022-12-19 20:26:13 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 3d79b6ee36b250644e6cf70eee8e3076d94cbb7f (patch) | |
tree | 0f734bfcfd278d6eef5ca0e82c008b7f2a6f7bba /include/serd/stream.h | |
parent | 7fb4c5264b91d5a5ce9f13a9fb4308088b31fcd4 (diff) | |
download | serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.tar.gz serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.tar.bz2 serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.zip |
Use Zix attributes directly
Diffstat (limited to 'include/serd/stream.h')
-rw-r--r-- | include/serd/stream.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/serd/stream.h b/include/serd/stream.h index 992db552..4b3582f5 100644 --- a/include/serd/stream.h +++ b/include/serd/stream.h @@ -5,6 +5,7 @@ #define SERD_STREAM_H #include "serd/attributes.h" +#include "zix/attributes.h" #include <stddef.h> @@ -29,7 +30,7 @@ SERD_BEGIN_DECLS @return Non-zero if `stream` has encountered an error. */ -typedef int (*SerdStreamErrorFunc)(void* SERD_NONNULL stream); +typedef int (*SerdStreamErrorFunc)(void* ZIX_NONNULL stream); /** Function for reading input bytes from a stream. @@ -43,10 +44,10 @@ typedef int (*SerdStreamErrorFunc)(void* SERD_NONNULL stream); @param stream Stream to read from (FILE* for fread). @return Number of elements (bytes) read, which is short on error. */ -typedef size_t (*SerdReadFunc)(void* SERD_NONNULL buf, - size_t size, - size_t nmemb, - void* SERD_NONNULL stream); +typedef size_t (*SerdReadFunc)(void* ZIX_NONNULL buf, + size_t size, + size_t nmemb, + void* ZIX_NONNULL stream); /** Function for writing output bytes to a stream. @@ -60,10 +61,10 @@ typedef size_t (*SerdReadFunc)(void* SERD_NONNULL buf, @param stream Stream to write to (FILE* for fread). @return Number of elements (bytes) written, which is short on error. */ -typedef size_t (*SerdWriteFunc)(const void* SERD_NONNULL buf, - size_t size, - size_t nmemb, - void* SERD_NONNULL stream); +typedef size_t (*SerdWriteFunc)(const void* ZIX_NONNULL buf, + size_t size, + size_t nmemb, + void* ZIX_NONNULL stream); /** @} |