diff options
author | David Robillard <d@drobilla.net> | 2022-10-02 18:19:49 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 8c4e3097517e95c8c6ff67f0a972525bfeb3bb1d (patch) | |
tree | 57f574d68cf73add1fa3eda2c1a6551f8b310957 /include/serd | |
parent | 9c00583bd37522a4f1703bf289587b4546edcf53 (diff) | |
download | serd-8c4e3097517e95c8c6ff67f0a972525bfeb3bb1d.tar.gz serd-8c4e3097517e95c8c6ff67f0a972525bfeb3bb1d.tar.bz2 serd-8c4e3097517e95c8c6ff67f0a972525bfeb3bb1d.zip |
Add serd_world_get_blank()
Diffstat (limited to 'include/serd')
-rw-r--r-- | include/serd/world.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/serd/world.h b/include/serd/world.h index 22ae57ed..abf2999c 100644 --- a/include/serd/world.h +++ b/include/serd/world.h @@ -6,6 +6,7 @@ #include "serd/attributes.h" #include "serd/error.h" +#include "serd/node.h" SERD_BEGIN_DECLS @@ -32,6 +33,15 @@ SERD_API void serd_world_free(SerdWorld* SERD_NULLABLE world); /** + Return a unique blank node. + + The returned node is valid only until the next time serd_world_get_blank() + is called or the world is destroyed. +*/ +SERD_API const SerdNode* SERD_NONNULL +serd_world_get_blank(SerdWorld* SERD_NONNULL world); + +/** Set a function to be called when errors occur. The `error_func` will be called with `handle` as its first argument. If |