aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-10 20:14:24 +0200
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commita14effc37415540b7b8a1dc6238b350566f273e1 (patch)
tree5291df350a08771824718a108a81060546f1bc2b /src/world.h
parent6eb1fa15a06ab7de08e33add1540a45b83c5f0d8 (diff)
downloadserd-a14effc37415540b7b8a1dc6238b350566f273e1.tar.gz
serd-a14effc37415540b7b8a1dc6238b350566f273e1.tar.bz2
serd-a14effc37415540b7b8a1dc6238b350566f273e1.zip
Move error handling to world
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h
index 39fdf5e0..8281bb5e 100644
--- a/src/world.h
+++ b/src/world.h
@@ -5,10 +5,26 @@
#define SERD_SRC_WORLD_H
#include "serd/error.h"
+#include "serd/status.h"
+#include "serd/world.h"
+
+#include <stdarg.h>
struct SerdWorldImpl {
SerdErrorFunc error_func;
void* error_handle;
};
+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