diff options
author | David Robillard <d@drobilla.net> | 2018-12-26 19:25:51 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 36a418f0d8dfd10007e48d6e8cb796cfa8aa4d88 (patch) | |
tree | d498db3c1870a90e7ec91eba2ea4dcb9987f30e2 /serd | |
parent | 5d65a0b7b687ffbbd624d75b42ac3336ce353c39 (diff) | |
download | serd-36a418f0d8dfd10007e48d6e8cb796cfa8aa4d88.tar.gz serd-36a418f0d8dfd10007e48d6e8cb796cfa8aa4d88.tar.bz2 serd-36a418f0d8dfd10007e48d6e8cb796cfa8aa4d88.zip |
Hide fopen wrapper and use reader interface consistently
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/serd/serd.h b/serd/serd.h index 41a1f30d..45e7ea56 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -914,12 +914,11 @@ serd_reader_set_default_graph(SerdReader* reader, const SerdNode* graph); /** - Read a file at a given `uri`. + Prepare to read from the file at a local file `uri`. */ SERD_API SerdStatus -serd_reader_read_file(SerdReader* reader, - const char* uri); +serd_reader_start_file(SerdReader* reader, const char* uri, bool bulk); /** Prepare to read from a stream. @@ -971,14 +970,7 @@ serd_reader_read_document(SerdReader* reader); */ SERD_API SerdStatus -serd_reader_end_stream(SerdReader* reader); - -/** - Read `utf8`. -*/ -SERD_API -SerdStatus -serd_reader_read_string(SerdReader* reader, const char* utf8); +serd_reader_finish(SerdReader* reader); /** Free `reader`. |