diff options
author | David Robillard <d@drobilla.net> | 2020-11-13 10:52:56 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 23:03:48 -0500 |
commit | bf4f881c2241fa8ae6459bd9c8ee6cc83ee563a9 (patch) | |
tree | fc04015e0566e8c2a1fc94e78274bb2896941034 /src/world.h | |
parent | 68769abbf1c7b4ef4f03f93f0c50e016c709a167 (diff) | |
download | serd-bf4f881c2241fa8ae6459bd9c8ee6cc83ee563a9.tar.gz serd-bf4f881c2241fa8ae6459bd9c8ee6cc83ee563a9.tar.bz2 serd-bf4f881c2241fa8ae6459bd9c8ee6cc83ee563a9.zip |
Move fopen wrapper to world
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 6 |
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); |