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>2019-04-13 19:15:32 +0200
commit6fa4720fe935853338b362e5fce1a2486e16978a (patch)
tree6ec84745cd6133f852d5bf49f33c786d01919fbb /serd
parent05d9109178906eb68ef6b488d115134c7bdcf179 (diff)
downloadserd-6fa4720fe935853338b362e5fce1a2486e16978a.tar.gz
serd-6fa4720fe935853338b362e5fce1a2486e16978a.tar.bz2
serd-6fa4720fe935853338b362e5fce1a2486e16978a.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 fd0912e2..ffdca47f 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -493,6 +493,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