diff options
author | David Robillard <d@drobilla.net> | 2018-12-26 14:21:37 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-19 20:57:51 -0500 |
commit | f03a9cffc2f52d637692210e2a3e96f545972976 (patch) | |
tree | 4da7195feeed67daa3a6822fbe5524e7a5b4fb0f /serd | |
parent | 36dc0c62b0dbeab7208111d6700c7aaaf51faf1d (diff) | |
download | serd-f03a9cffc2f52d637692210e2a3e96f545972976.tar.gz serd-f03a9cffc2f52d637692210e2a3e96f545972976.tar.bz2 serd-f03a9cffc2f52d637692210e2a3e96f545972976.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 272e9b97..1dc4db97 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -920,6 +920,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() |