From 456bdeef35ffbfbdad7609e8b8a4ef71372786fd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jan 2021 20:00:25 +0100 Subject: [WIP] Add extensible logging API --- src/world.h | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'src/world.h') 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 #include 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 -- cgit v1.2.1