diff options
author | David Robillard <d@drobilla.net> | 2020-06-21 18:19:48 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 89acd9d099bd46c1cbf17ee3a7bb78610a8138fe (patch) | |
tree | 514ed1fa92b78021498cd4373ea543dec3e1603c /src/writer.c | |
parent | 098b744bafe57d95bba844190d9a6f1a9db33d4c (diff) | |
download | serd-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.c | 8 |
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); |