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>2020-10-27 13:13:58 +0100
commit085e63e53502adfc16c3830ed6b0b941314b8f8a (patch)
tree509a1b7b5ee85e9e6d3a409e25029f9062fe29fb /src/byte_source.h
parent9e5fa742b6ef66a546c0a77c14f834f2268c5f71 (diff)
downloadserd-085e63e53502adfc16c3830ed6b0b941314b8f8a.tar.gz
serd-085e63e53502adfc16c3830ed6b0b941314b8f8a.tar.bz2
serd-085e63e53502adfc16c3830ed6b0b941314b8f8a.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 a0dfa140..e5c4a8bf 100644
--- a/src/byte_source.h
+++ b/src/byte_source.h
@@ -26,9 +26,9 @@
#include <stdio.h>
typedef struct {
- const uint8_t* filename;
- unsigned line;
- unsigned col;
+ const char* filename;
+ unsigned line;
+ unsigned col;
} Cursor;
typedef struct {
@@ -53,14 +53,14 @@ serd_byte_source_open_file(SerdByteSource* source,
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