summaryrefslogtreecommitdiff
path: root/src/platform/file.h
diff options
context:
space:
mode:
authoromnisci3nce <17525998+omnisci3nce@users.noreply.github.com>2024-03-27 22:09:03 +1100
committeromnisci3nce <17525998+omnisci3nce@users.noreply.github.com>2024-03-27 22:09:03 +1100
commitff907c6ffa7ed0a7c6ce938b40a6c223dd0a3b9d (patch)
tree095d3153a42b850fb32287c1aef206e9fba5faab /src/platform/file.h
parent80cdd4f2b1c2a3355926b59a85e14100b3daa7b7 (diff)
start going through Kohi episode 26
Diffstat (limited to 'src/platform/file.h')
-rw-r--r--src/platform/file.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/platform/file.h b/src/platform/file.h
index 8bb22c8..83d1317 100644
--- a/src/platform/file.h
+++ b/src/platform/file.h
@@ -16,4 +16,11 @@ typedef struct str8_opt {
const char* string_from_file(const char* path);
-str8_opt str8_from_file(arena* a, str8 path); \ No newline at end of file
+str8_opt str8_from_file(arena* a, str8 path);
+
+typedef struct {
+ char *data;
+ size_t size;
+} FileData;
+
+FileData load_spv_file(const char *path); \ No newline at end of file