diff options
author | David Robillard <d@drobilla.net> | 2021-01-13 20:00:25 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 456bdeef35ffbfbdad7609e8b8a4ef71372786fd (patch) | |
tree | 25fabaa4f361f66a2bac860f06722e7f51776cbc /src/world.h | |
parent | fc2114a10769349d38b3215bc95ded855a2be5b6 (diff) | |
download | serd-456bdeef35ffbfbdad7609e8b8a4ef71372786fd.tar.gz serd-456bdeef35ffbfbdad7609e8b8a4ef71372786fd.tar.bz2 serd-456bdeef35ffbfbdad7609e8b8a4ef71372786fd.zip |
[WIP] Add extensible logging API
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/world.h b/src/world.h index 56db46cc..af6281d4 100644 --- a/src/world.h +++ b/src/world.h @@ -4,32 +4,18 @@ #ifndef SERD_SRC_WORLD_H #define SERD_SRC_WORLD_H -#include "serd/error.h" +#include "log.h" + #include "serd/node.h" -#include "serd/status.h" #include "serd/world.h" -#include <stdarg.h> #include <stdint.h> struct SerdWorldImpl { - SerdLimits limits; - SerdLogFunc error_func; - void* error_handle; - uint32_t next_blank_id; - SerdNode* blank_node; + SerdLimits limits; + SerdLog log; + uint32_t next_blank_id; + SerdNode* blank_node; }; -SerdStatus -serd_world_error(const SerdWorld* world, const SerdError* e); - -SerdStatus -serd_world_errorf(const SerdWorld* world, SerdStatus st, const char* fmt, ...); - -SerdStatus -serd_world_verrorf(const SerdWorld* world, - SerdStatus st, - const char* fmt, - va_list args); - #endif // SERD_SRC_WORLD_H |