aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-28 14:15:28 +0100
committerDavid Robillard <d@drobilla.net>2022-01-13 23:03:58 -0500
commit66b145eee13fc1d65edbd7b126791da29ea377bd (patch)
treed643f37567ed90a4827fa0fe2a5fe514c5e553dd /include/serd
parent4cfc8dc3521480672938a74813ca8bf19eaee964 (diff)
downloadserd-66b145eee13fc1d65edbd7b126791da29ea377bd.tar.gz
serd-66b145eee13fc1d65edbd7b126791da29ea377bd.tar.bz2
serd-66b145eee13fc1d65edbd7b126791da29ea377bd.zip
Cache commonly used nodes in the world
Diffstat (limited to 'include/serd')
-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 bf346a99..0120c73b 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -1160,6 +1160,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()