aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-15 09:26:17 -0400
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commitce6fbad56fb6970fe507186d6560ad4fac981d74 (patch)
treebb08acadb802660b221fd29b322e1cb083dd17e6 /tests
parentc5fb8c6326dfe8c46fe2247e611ae1bf94275da0 (diff)
downloadserd-ce6fbad56fb6970fe507186d6560ad4fac981d74.tar.gz
serd-ce6fbad56fb6970fe507186d6560ad4fac981d74.tar.bz2
serd-ce6fbad56fb6970fe507186d6560ad4fac981d74.zip
Bring read/write interface closer to C standard
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 7062cee8..76a535fa 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -137,7 +137,7 @@ test_read_chunks(void)
assert(f);
SerdStatus st = serd_reader_start_stream(reader,
- (SerdSource)fread,
+ (SerdReadFunc)fread,
(SerdStreamErrorFunc)ferror,
f,
NULL,
@@ -504,7 +504,7 @@ test_writer(const char* const path)
assert(fd);
SerdWriter* writer = serd_writer_new(
- SERD_TURTLE, (SerdStyle)0, env, NULL, serd_file_sink, fd);
+ SERD_TURTLE, (SerdStyle)0, env, NULL, (SerdWriteFunc)fwrite, fd);
assert(writer);
serd_writer_chop_blank_prefix(writer, "tmp");
@@ -636,7 +636,7 @@ test_reader(const char* path)
fseek(temp, 0L, SEEK_SET);
serd_reader_start_stream(reader,
- (SerdSource)fread,
+ (SerdReadFunc)fread,
(SerdStreamErrorFunc)ferror,
temp,
NULL,
@@ -654,7 +654,7 @@ test_reader(const char* path)
{
size_t n_reads = 0;
serd_reader_start_stream(reader,
- (SerdSource)eof_test_read,
+ (SerdReadFunc)eof_test_read,
(SerdStreamErrorFunc)eof_test_error,
&n_reads,
NULL,