aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 822b4b10..8efaab20 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -119,7 +119,7 @@ bool
serd_uri_write(const SerdURI* uri, FILE* file);
/** Sink function for raw string output. */
-typedef size_t (*SerdSink)(const uint8_t* buf, size_t len, void* stream);
+typedef size_t (*SerdSink)(const void* buf, size_t len, void* stream);
/** Serialise @a uri with a series of calls to @a sink. */
SERD_API
@@ -249,8 +249,9 @@ SERD_API
SerdWriter
serd_writer_new(SerdSyntax syntax,
SerdNamespaces ns,
- FILE* file,
- const SerdURI* base_uri);
+ const SerdURI* base_uri,
+ SerdSink sink,
+ void* stream);
/** Free @a writer. */
SERD_API