aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-04-29 18:36:11 +0200
committerDavid Robillard <d@drobilla.net>2018-05-27 18:23:15 +0200
commit8d1dcc05f7072651c0056221d00d8f1bf3fb80a1 (patch)
tree4e06a8ed7440c3f8554ef15e96a605507c4cbb25 /serd
parentb81b27fd762c3a3880070277a6d563a1c6913c1a (diff)
downloadserd-8d1dcc05f7072651c0056221d00d8f1bf3fb80a1.tar.gz
serd-8d1dcc05f7072651c0056221d00d8f1bf3fb80a1.tar.bz2
serd-8d1dcc05f7072651c0056221d00d8f1bf3fb80a1.zip
Add blank node API
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h
index ae581886..7b24fd74 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -465,6 +465,16 @@ serd_node_new_literal(const char* str,
const char* lang);
/**
+ Create a new blank node.
+
+ Note this function measures `str`, which is a common bottleneck.
+ Use sord_node_from_serd_node() instead if `str` is already measured.
+*/
+SERD_API
+SerdNode*
+serd_node_new_blank(const char* str);
+
+/**
Return a deep copy of `node`.
*/
SERD_API