aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-21 18:19:48 +0200
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit89acd9d099bd46c1cbf17ee3a7bb78610a8138fe (patch)
tree514ed1fa92b78021498cd4373ea543dec3e1603c /src/writer.c
parent098b744bafe57d95bba844190d9a6f1a9db33d4c (diff)
downloadserd-89acd9d099bd46c1cbf17ee3a7bb78610a8138fe.tar.gz
serd-89acd9d099bd46c1cbf17ee3a7bb78610a8138fe.tar.bz2
serd-89acd9d099bd46c1cbf17ee3a7bb78610a8138fe.zip
Add serd_node_from_syntax() and serd_node_to_syntax()
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index 88c544d4..0b0574d5 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -1,6 +1,8 @@
// Copyright 2011-2023 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
+#include "writer.h"
+
#include "block_dumper.h"
#include "env.h"
#include "memory.h"
@@ -1304,6 +1306,12 @@ serd_writer_on_event(SerdWriter* writer, const SerdEvent* event)
}
SerdStatus
+serd_writer_write_node(SerdWriter* writer, const SerdNode* node)
+{
+ return write_node(writer, node, SERD_OBJECT, 0);
+}
+
+SerdStatus
serd_writer_finish(SerdWriter* writer)
{
assert(writer);