From 66b145eee13fc1d65edbd7b126791da29ea377bd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Oct 2018 14:15:28 +0100 Subject: Cache commonly used nodes in the world --- include/serd/serd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/serd') 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 @@ -1159,6 +1159,17 @@ SERD_API 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. -- cgit v1.2.1