aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-28 14:15:28 +0100
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:05 -0500
commit6aee38ce233b319c4ee3ac1f16f4c2ca621cb4b0 (patch)
tree566321615dbbdc73554339c73da67a4bc0c02638 /include/serd/serd.h
parent800f2d0d4960061a1739a36d8b608a13896b321e (diff)
downloadserd-6aee38ce233b319c4ee3ac1f16f4c2ca621cb4b0.tar.gz
serd-6aee38ce233b319c4ee3ac1f16f4c2ca621cb4b0.tar.bz2
serd-6aee38ce233b319c4ee3ac1f16f4c2ca621cb4b0.zip
Cache commonly used nodes in the world
Diffstat (limited to 'include/serd/serd.h')
-rw-r--r--include/serd/serd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 7c1ff057..7b279517 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -956,6 +956,17 @@ void
serd_world_free(SerdWorld* SERD_NULLABLE world);
/**
+ Return the nodes cache in `world`.
+
+ The returned cache is owned by the world and contains various nodes used
+ frequently by the implementation. For convenience, it may be used to store
+ additional nodes which will be freed when the world is freed.
+*/
+SERD_PURE_API
+SerdNodes* SERD_NONNULL
+serd_world_nodes(SerdWorld* SERD_NONNULL world);
+
+/**
Return a unique blank node.
The returned node is valid only until the next time serd_world_get_blank()