aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-12 17:56:27 +0200
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:05 -0500
commitf0f4bfb37f36fce6d6e216a90162b81691f61e83 (patch)
treec3038f393641334ba2c04bf82acc545f1038803f /include/serd/serd.h
parentfd276bcf70bad4520ca1d6f3c73f88073b3b58cf (diff)
downloadserd-f0f4bfb37f36fce6d6e216a90162b81691f61e83.tar.gz
serd-f0f4bfb37f36fce6d6e216a90162b81691f61e83.tar.bz2
serd-f0f4bfb37f36fce6d6e216a90162b81691f61e83.zip
Add serd_world_get_blank()
Diffstat (limited to 'include/serd/serd.h')
-rw-r--r--include/serd/serd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index d57f1470..3d08eb07 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -871,6 +871,16 @@ void
serd_world_free(SerdWorld* SERD_NULLABLE world);
/**
+ Return a unique blank node.
+
+ The returned node is valid only until the next time serd_world_get_blank()
+ is called or the world is destroyed.
+*/
+SERD_API
+const SerdNode* SERD_NONNULL
+serd_world_get_blank(SerdWorld* SERD_NONNULL world);
+
+/**
Set a function to be called when errors occur.
The `error_func` will be called with `handle` as its first argument. If