aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node.c b/src/node.c
index 0b306489..66e5b5c1 100644
--- a/src/node.c
+++ b/src/node.c
@@ -24,6 +24,16 @@
SERD_API
SerdNode
+serd_node_from_string(SerdType type, const uint8_t* buf)
+{
+ size_t buf_n_bytes;
+ const size_t buf_n_chars = serd_strlen(buf, &buf_n_bytes);
+ SerdNode ret = { type, buf_n_bytes, buf_n_chars, buf };
+ return ret;
+}
+
+SERD_API
+SerdNode
serd_node_copy(const SerdNode* node)
{
SerdNode copy = *node;