aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/reader.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-23 22:11:35 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3 (patch)
tree8f5f1e7be38d98c9e354a67bdf7b94a3e35c3a60 /include/serd/reader.h
parent3b89559e4c08202bee228e25ea42a4371e333c9b (diff)
downloadserd-38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3.tar.gz
serd-38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3.tar.bz2
serd-38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3.zip
Add SerdCaret
Diffstat (limited to 'include/serd/reader.h')
-rw-r--r--include/serd/reader.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/serd/reader.h b/include/serd/reader.h
index aedc5cb3..cc19a9b8 100644
--- a/include/serd/reader.h
+++ b/include/serd/reader.h
@@ -5,6 +5,7 @@
#define SERD_READER_H
#include "serd/attributes.h"
+#include "serd/node.h"
#include "serd/sink.h"
#include "serd/status.h"
#include "serd/stream.h"
@@ -73,13 +74,14 @@ serd_reader_start_stream(SerdReader* SERD_NONNULL reader,
SerdReadFunc SERD_NONNULL read_func,
SerdStreamErrorFunc SERD_NONNULL error_func,
void* SERD_NONNULL stream,
- const char* SERD_NULLABLE name,
+ const SerdNode* SERD_NULLABLE name,
size_t page_size);
/// Prepare to read from a string
SERD_API SerdStatus
-serd_reader_start_string(SerdReader* SERD_NONNULL reader,
- const char* SERD_NONNULL utf8);
+serd_reader_start_string(SerdReader* SERD_NONNULL reader,
+ const char* SERD_NONNULL utf8,
+ const SerdNode* SERD_NULLABLE name);
/**
Read a single "chunk" of data during an incremental read.