aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-11 11:09:23 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:03 +0200
commitf91127d72a1227a5adae57d641100c8f29741937 (patch)
tree3357b3060936e46f9b015d6c41265e6527fdfa63 /src/byte_source.c
parent1a25e379b3dfcc8716cfbcbac58a7076cffddc3a (diff)
downloadserd-f91127d72a1227a5adae57d641100c8f29741937.tar.gz
serd-f91127d72a1227a5adae57d641100c8f29741937.tar.bz2
serd-f91127d72a1227a5adae57d641100c8f29741937.zip
Move system utilities to separate source files
Diffstat (limited to 'src/byte_source.c')
-rw-r--r--src/byte_source.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/byte_source.c b/src/byte_source.c
index 59ab673f..0153c08b 100644
--- a/src/byte_source.c
+++ b/src/byte_source.c
@@ -15,13 +15,8 @@
*/
#include "byte_source.h"
+#include "system.h"
-#include "serd_internal.h"
-
-#include "serd/serd.h"
-
-#include <stdbool.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@@ -65,7 +60,7 @@ serd_byte_source_open_source(SerdByteSource* source,
source->from_stream = true;
if (page_size > 1) {
- source->file_buf = (uint8_t*)serd_bufalloc(page_size);
+ source->file_buf = (uint8_t*)serd_allocate_buffer(page_size);
source->read_buf = source->file_buf;
memset(source->file_buf, '\0', page_size);
} else {