aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-13 10:52:56 +0100
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit1a95f759fe3d642e8520e41e691e63f22a2f3b99 (patch)
treea4a0543b251cf0b0523bfcf2da06c9d92a066d74 /src/world.h
parenta14effc37415540b7b8a1dc6238b350566f273e1 (diff)
downloadserd-1a95f759fe3d642e8520e41e691e63f22a2f3b99.tar.gz
serd-1a95f759fe3d642e8520e41e691e63f22a2f3b99.tar.bz2
serd-1a95f759fe3d642e8520e41e691e63f22a2f3b99.zip
Move fopen wrapper to world
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/world.h b/src/world.h
index 8281bb5e..dd3d4043 100644
--- a/src/world.h
+++ b/src/world.h
@@ -8,13 +8,17 @@
#include "serd/status.h"
#include "serd/world.h"
-#include <stdarg.h>
+#include <stdio.h>
struct SerdWorldImpl {
SerdErrorFunc error_func;
void* error_handle;
};
+/// Open a file configured for fast sequential reading
+FILE*
+serd_world_fopen(SerdWorld* world, const char* path, const char* mode);
+
SerdStatus
serd_world_error(const SerdWorld* world, const SerdError* e);