aboutsummaryrefslogtreecommitdiffstats
path: root/src/block_dumper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block_dumper.h')
-rw-r--r--src/block_dumper.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/block_dumper.h b/src/block_dumper.h
index 24fb977c..e5a2c318 100644
--- a/src/block_dumper.h
+++ b/src/block_dumper.h
@@ -4,14 +4,18 @@
#ifndef SERD_SRC_BLOCK_DUMPER_H
#define SERD_SRC_BLOCK_DUMPER_H
+#include "serd/memory.h"
#include "serd/output_stream.h"
#include "serd/status.h"
+#include "serd/world.h"
#include "zix/attributes.h"
#include <stddef.h>
#include <string.h>
typedef struct {
+ SerdAllocator* ZIX_NONNULL allocator; ///< Buffer allocator
+
SerdOutputStream* ZIX_ALLOCATED out; ///< Output stream to write to
char* ZIX_ALLOCATED buf; ///< Local buffer if needed
size_t size; ///< Bytes pending for this block
@@ -25,7 +29,8 @@ typedef struct {
calling serd_block_dumper_close().
*/
SerdStatus
-serd_block_dumper_open(SerdBlockDumper* ZIX_NONNULL dumper,
+serd_block_dumper_open(const SerdWorld* ZIX_NONNULL world,
+ SerdBlockDumper* ZIX_NONNULL dumper,
SerdOutputStream* ZIX_NONNULL output,
size_t block_size);