aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/node.c b/src/node.c
index fea7d494..6f7a44a4 100644
--- a/src/node.c
+++ b/src/node.c
@@ -370,6 +370,30 @@ serd_node_new_blob(const void* buf, size_t size, bool wrap_lines)
return node;
}
+SerdType
+serd_node_get_type(const SerdNode* node)
+{
+ return node ? node->type : SERD_NOTHING;
+}
+
+const char*
+serd_node_get_string(const SerdNode* node)
+{
+ return node->buf;
+}
+
+size_t
+serd_node_get_length(const SerdNode* node)
+{
+ return node->n_bytes;
+}
+
+SerdNodeFlags
+serd_node_get_flags(const SerdNode* node)
+{
+ return node->flags;
+}
+
void
serd_node_free(SerdNode* node)
{