aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-06-07 12:12:38 -0400
committerDavid Robillard <d@drobilla.net>2022-01-13 23:04:16 -0500
commit900d360027d570da085d495becde1ad50f050048 (patch)
tree35310db3732f00db8f87df2d1570f0c9e372d776 /include
parent4fd1068b4efea839707a4bdbc5066d5c423825bb (diff)
downloadserd-900d360027d570da085d495becde1ad50f050048.tar.gz
serd-900d360027d570da085d495becde1ad50f050048.tar.bz2
serd-900d360027d570da085d495becde1ad50f050048.zip
Move I/O function prototypes to their own section
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index e13fc2db..776bf910 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -256,13 +256,10 @@ serd_strlen(const char* SERD_NONNULL str, SerdNodeFlags* SERD_NULLABLE flags);
/**
@}
- @defgroup serd_streams Byte Streams
+ @defgroup serd_io_functions I/O Function Types
@{
*/
-/// A sink for bytes that receives text output
-typedef struct SerdByteSinkImpl SerdByteSink;
-
/**
Function to detect I/O stream errors.
@@ -307,6 +304,15 @@ typedef size_t (*SerdWriteFunc)(const void* SERD_NONNULL buf,
void* SERD_NONNULL stream);
/**
+ @}
+ @defgroup serd_streams Byte Streams
+ @{
+*/
+
+/// A sink for bytes that receives text output
+typedef struct SerdByteSinkImpl SerdByteSink;
+
+/**
Create a new byte sink.
@param write_func Function called with bytes to consume.