summaryrefslogtreecommitdiff
path: root/src/platform/file.h
diff options
context:
space:
mode:
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..a8aa8ea 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