diff options
Diffstat (limited to 'include')
-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 |