aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index cee0455f..b9d80ce7 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -606,3 +606,12 @@ serd_writer_free(SerdWriter* writer)
}
free(writer);
}
+
+SERD_API
+size_t
+serd_file_sink(const void* buf, size_t len, void* stream)
+{
+ FILE* file = (FILE*)stream;
+ return fwrite(buf, 1, len, file);
+}
+