aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.