diff options
author | David Robillard <d@drobilla.net> | 2018-12-26 14:21:37 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:49 -0500 |
commit | 8790f785102ffc5b205ee1ea1fc2586164a6f383 (patch) | |
tree | 4ad21e9ef8cbb3124ea7ae9ff4745cfdd0d49bee /serd | |
parent | b3c0633ba1421d6753b6b2c9dbcd46e51e6e55b3 (diff) | |
download | serd-8790f785102ffc5b205ee1ea1fc2586164a6f383.tar.gz serd-8790f785102ffc5b205ee1ea1fc2586164a6f383.tar.bz2 serd-8790f785102ffc5b205ee1ea1fc2586164a6f383.zip |
Expose the node cache in the world
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h index 716d37c6..42547a31 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -891,6 +891,17 @@ void serd_world_free(SerdWorld* 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_API +SerdNodes* +serd_world_get_nodes(SerdWorld* world); + +/** Return a unique blank node. The returned node is valid only until the next time serd_world_get_blank() |