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>2021-03-08 23:23:05 -0500
commitfd276bcf70bad4520ca1d6f3c73f88073b3b58cf (patch)
treeaf2c60324c119f78f85bba30cdb5223d9dcf10c0 /src/world.h
parenta4f6754a4048f2bcb04482938d5a98e9ab77d4fc (diff)
downloadserd-fd276bcf70bad4520ca1d6f3c73f88073b3b58cf.tar.gz
serd-fd276bcf70bad4520ca1d6f3c73f88073b3b58cf.tar.bz2
serd-fd276bcf70bad4520ca1d6f3c73f88073b3b58cf.zip
Move fopen wrapper to world
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h
index 08c351fe..ab7aad80 100644
--- a/src/world.h
+++ b/src/world.h
@@ -19,11 +19,17 @@
#include "serd/serd.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);