aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-03-16 16:21:20 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commit84bab08585dec858807a6130bd2d71f304b889f0 (patch)
treeea78338414095c2c871944a0135028e1399b12fe /src/byte_source.h
parentcaa74939cba8b1cd357e553efca9bec5074b1c53 (diff)
downloadserd-84bab08585dec858807a6130bd2d71f304b889f0.tar.gz
serd-84bab08585dec858807a6130bd2d71f304b889f0.tar.bz2
serd-84bab08585dec858807a6130bd2d71f304b889f0.zip
Use char* for strings in public API
The constant casting just makes user code a mess, for no benefit.
Diffstat (limited to 'src/byte_source.h')
-rw-r--r--src/byte_source.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/byte_source.h b/src/byte_source.h
index 3eafe4b8..218e47fa 100644
--- a/src/byte_source.h
+++ b/src/byte_source.h
@@ -13,9 +13,9 @@
#include <stdio.h>
typedef struct {
- const uint8_t* filename;
- unsigned line;
- unsigned col;
+ const char* filename;
+ unsigned line;
+ unsigned col;
} Cursor;
typedef struct {
@@ -38,14 +38,14 @@ SerdStatus
serd_byte_source_open_file(SerdByteSource* source, FILE* file, bool bulk);
SerdStatus
-serd_byte_source_open_string(SerdByteSource* source, const uint8_t* utf8);
+serd_byte_source_open_string(SerdByteSource* source, const char* utf8);
SerdStatus
serd_byte_source_open_source(SerdByteSource* source,
SerdSource read_func,
SerdStreamErrorFunc error_func,
void* stream,
- const uint8_t* name,
+ const char* name,
size_t page_size);
SerdStatus