aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-15 09:26:17 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commitb631e7a3d6a807aaf4919396b62ba96e1a9f0bd9 (patch)
tree70a49bcc4d79d83d0f80f115da457514e09977d0 /src/reader.c
parentfe0b6d5d4d78cb31e1bf2381198890d070e46ed1 (diff)
downloadserd-b631e7a3d6a807aaf4919396b62ba96e1a9f0bd9.tar.gz
serd-b631e7a3d6a807aaf4919396b62ba96e1a9f0bd9.tar.bz2
serd-b631e7a3d6a807aaf4919396b62ba96e1a9f0bd9.zip
Bring read/write interface closer to the C standard
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader.c b/src/reader.c
index 02738cd2..c7919ca6 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -303,7 +303,7 @@ serd_reader_start_stream(SerdReader* const reader,
const bool bulk)
{
return serd_reader_start_source_stream(reader,
- bulk ? (SerdSource)fread
+ bulk ? (SerdReadFunc)fread
: serd_file_read_byte,
(SerdStreamErrorFunc)ferror,
file,
@@ -313,7 +313,7 @@ serd_reader_start_stream(SerdReader* const reader,
SerdStatus
serd_reader_start_source_stream(SerdReader* const reader,
- const SerdSource read_func,
+ const SerdReadFunc read_func,
const SerdStreamErrorFunc error_func,
void* const stream,
const char* const name,
@@ -369,7 +369,7 @@ serd_reader_read_file_handle(SerdReader* const reader,
const char* const name)
{
return serd_reader_read_source(reader,
- (SerdSource)fread,
+ (SerdReadFunc)fread,
(SerdStreamErrorFunc)ferror,
file,
name,
@@ -378,7 +378,7 @@ serd_reader_read_file_handle(SerdReader* const reader,
SerdStatus
serd_reader_read_source(SerdReader* const reader,
- const SerdSource source,
+ const SerdReadFunc source,
const SerdStreamErrorFunc error,
void* const stream,
const char* const name,