diff options
author | David Robillard <d@drobilla.net> | 2021-09-09 14:30:19 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:07 -0500 |
commit | 5ea7c0d763685c23dc6933e273dfa11eec5bec14 (patch) | |
tree | c858abf15eae4f98472796aff3d05e4aadc51bc1 /src | |
parent | bd24b8f6d558bafbbb16d9490ebe3478dbf130bd (diff) | |
download | serd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.tar.gz serd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.tar.bz2 serd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.zip |
Use simpler names for I/O function types
Diffstat (limited to 'src')
-rw-r--r-- | src/input_stream.c | 12 | ||||
-rw-r--r-- | src/output_stream.c | 8 |
2 files changed, 10 insertions, 10 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; } diff --git a/src/output_stream.c b/src/output_stream.c index 7beb5e2f..b98c834a 100644 --- a/src/output_stream.c +++ b/src/output_stream.c @@ -29,9 +29,9 @@ #endif SerdOutputStream -serd_open_output_stream(SerdWriteFunc const write_func, - SerdStreamCloseFunc const close_func, - void* const stream) +serd_open_output_stream(SerdWriteFunc const write_func, + SerdCloseFunc const close_func, + void* const stream) { assert(write_func); @@ -68,7 +68,7 @@ serd_open_output_file(const char* const path) #endif return serd_open_output_stream( - (SerdWriteFunc)fwrite, (SerdStreamCloseFunc)fclose, file); + (SerdWriteFunc)fwrite, (SerdCloseFunc)fclose, file); } SerdStatus |