aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_stream.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-09-09 14:30:19 -0400
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:07 -0500
commit5ea7c0d763685c23dc6933e273dfa11eec5bec14 (patch)
treec858abf15eae4f98472796aff3d05e4aadc51bc1 /src/input_stream.c
parentbd24b8f6d558bafbbb16d9490ebe3478dbf130bd (diff)
downloadserd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.tar.gz
serd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.tar.bz2
serd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.zip
Use simpler names for I/O function types
Diffstat (limited to 'src/input_stream.c')
-rw-r--r--src/input_stream.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/input_stream.c b/src/input_stream.c
index 5755ccc3..e83f9e6a 100644
--- a/src/input_stream.c
+++ b/src/input_stream.c
@@ -64,10 +64,10 @@ serd_string_close(void* const stream)
}
SerdInputStream
-serd_open_input_stream(SerdReadFunc SERD_NONNULL read_func,
- SerdStreamErrorFunc SERD_NONNULL error_func,
- SerdStreamCloseFunc SERD_NULLABLE close_func,
- void* const stream)
+serd_open_input_stream(SerdReadFunc SERD_NONNULL read_func,
+ SerdErrorFunc SERD_NONNULL error_func,
+ SerdCloseFunc SERD_NULLABLE close_func,
+ void* const stream)
{
assert(read_func);
assert(error_func);
@@ -126,8 +126,8 @@ serd_open_input_file(const char* const path)
input.stream = file;
input.read = (SerdReadFunc)fread;
- input.error = (SerdStreamErrorFunc)ferror;
- input.close = (SerdStreamCloseFunc)fclose;
+ input.error = (SerdErrorFunc)ferror;
+ input.close = (SerdCloseFunc)fclose;
return input;
}