diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 12:40:45 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 15:33:54 -0500 |
commit | a650d2ad2d4785c40405854740e70f487ae1016a (patch) | |
tree | 7c7b12d1dcaae256639126a5e08ed390d2b490a3 /src | |
parent | 1483449efe47dccdfdf3f5415c2aa616f73c9cef (diff) | |
download | serd-a650d2ad2d4785c40405854740e70f487ae1016a.tar.gz serd-a650d2ad2d4785c40405854740e70f487ae1016a.tar.bz2 serd-a650d2ad2d4785c40405854740e70f487ae1016a.zip |
Add node accessor API
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -377,6 +377,30 @@ serd_new_blob(const void* const buf, const size_t size, const bool wrap_lines) return node; } +SerdNodeType +serd_node_type(const SerdNode* const node) +{ + return node->type; +} + +const char* +serd_node_string(const SerdNode* const node) +{ + return node->buf; +} + +size_t +serd_node_length(const SerdNode* const node) +{ + return node->n_bytes; +} + +SerdNodeFlags +serd_node_flags(const SerdNode* const node) +{ + return node->flags; +} + void serd_node_free(SerdNode* const node) { |