aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-15 09:26:17 -0400
committerDavid Robillard <d@drobilla.net>2018-11-25 15:58:12 +0100
commit6cf2ecfab4b3cb150b154bdc1130aca022a8f89c (patch)
tree5ebefe63c8d06c6727f5d7a09cf888960d2a1c87 /src/byte_source.h
parentc8a91d6fcae2b5c7121f059f75e2a164735e56c1 (diff)
downloadserd-6cf2ecfab4b3cb150b154bdc1130aca022a8f89c.tar.gz
serd-6cf2ecfab4b3cb150b154bdc1130aca022a8f89c.tar.bz2
serd-6cf2ecfab4b3cb150b154bdc1130aca022a8f89c.zip
Bring read/write interface closer to C standard
Diffstat (limited to 'src/byte_source.h')
-rw-r--r--src/byte_source.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/byte_source.h b/src/byte_source.h
index 27bb0a6e..a6596a27 100644
--- a/src/byte_source.h
+++ b/src/byte_source.h
@@ -30,7 +30,7 @@ typedef struct {
} Cursor;
typedef struct {
- SerdSource read_func; ///< Read function (e.g. fread)
+ SerdReadFunc read_func; ///< Read function (e.g. fread)
SerdStreamErrorFunc error_func; ///< Error function (e.g. ferror)
void* stream; ///< Stream (e.g. FILE)
size_t page_size; ///< Number of bytes to read at a time
@@ -54,7 +54,7 @@ serd_byte_source_open_string(SerdByteSource* source, const char* utf8);
SerdStatus
serd_byte_source_open_source(SerdByteSource* source,
- SerdSource read_func,
+ SerdReadFunc read_func,
SerdStreamErrorFunc error_func,
void* stream,
const char* name,