commit b487fdc112d0f4c3d19bb167ff22dadf030a34ab
parent c5260ace9f4e3b88495ca373adf84ef10cd7c698
Author: MikoĊaj Lenczewski <mblenczewski@gmail.com>
Date: Sun, 12 Feb 2023 02:57:23 +0000
Added INIBIN reader and writer stubs
Diffstat:
3 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/libriot/include/libriot.h b/libriot/include/libriot.h
@@ -161,6 +161,12 @@ riot_bin_ctx_pushn_pair(struct riot_bin_ctx *self, u32 count, riot_bin_offptr_t
extern b32
riot_bin_ctx_pushn_node(struct riot_bin_ctx *self, u32 count, riot_bin_offptr_t *out);
+extern b32
+riot_bin_read(struct riot_bin_ctx *ctx, struct mem_stream stream);
+
+extern b32
+riot_bin_write(struct riot_bin_ctx *ctx, struct mem_stream stream);
+
#ifdef __cplusplus
};
#endif /* __cplusplus */
diff --git a/libriot/src/bin_reader.c b/libriot/src/bin_reader.c
@@ -0,0 +1,10 @@
+#include "libriot.h"
+
+b32
+riot_bin_read(struct riot_bin_ctx *ctx, struct mem_stream stream) {
+ assert(ctx);
+
+ (void) stream;
+
+ return false;
+}
diff --git a/libriot/src/bin_writer.c b/libriot/src/bin_writer.c
@@ -0,0 +1,10 @@
+#include "libriot.h"
+
+b32
+riot_bin_write(struct riot_bin_ctx *ctx, struct mem_stream stream) {
+ assert(ctx);
+
+ (void) stream;
+
+ return false;
+}