diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -384,6 +384,34 @@ serd_node_new_blob(const void* buf, size_t size, bool wrap_lines) } SERD_API +SerdType +serd_node_get_type(const SerdNode* node) +{ + return node ? node->type : SERD_NOTHING; +} + +SERD_API +const char* +serd_node_get_string(const SerdNode* node) +{ + return node->buf; +} + +SERD_API +size_t +serd_node_get_length(const SerdNode* node) +{ + return node->n_bytes; +} + +SERD_API +SerdNodeFlags +serd_node_get_flags(const SerdNode* node) +{ + return node->flags; +} + +SERD_API void serd_node_free(SerdNode* node) { |