aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/system/fileutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/system/fileutils.h')
-rw-r--r--include/mgl/system/fileutils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mgl/system/fileutils.h b/include/mgl/system/fileutils.h
new file mode 100644
index 0000000..71af147
--- /dev/null
+++ b/include/mgl/system/fileutils.h
@@ -0,0 +1,14 @@
+#ifndef MGL_FILEUTILS_H
+#define MGL_FILEUTILS_H
+
+#include <stddef.h>
+
+typedef struct {
+ unsigned char *data;
+ size_t size;
+} mgl_filedata;
+
+int mgl_load_file(const char *filepath, mgl_filedata *filedata);
+void mgl_filedata_free(mgl_filedata *self);
+
+#endif /* MGL_FILEUTILS_H */