diff options
author | David Robillard <d@drobilla.net> | 2018-10-28 14:15:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 23:03:58 -0500 |
commit | 66b145eee13fc1d65edbd7b126791da29ea377bd (patch) | |
tree | d643f37567ed90a4827fa0fe2a5fe514c5e553dd /include | |
parent | 4cfc8dc3521480672938a74813ca8bf19eaee964 (diff) | |
download | serd-66b145eee13fc1d65edbd7b126791da29ea377bd.tar.gz serd-66b145eee13fc1d65edbd7b126791da29ea377bd.tar.bz2 serd-66b145eee13fc1d65edbd7b126791da29ea377bd.zip |
Cache commonly used nodes in the world
Diffstat (limited to 'include')
-rw-r--r-- | include/serd/serd.h | 11 |
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() |