aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/system
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-15 08:20:13 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-15 08:20:13 +0100
commita3c6774f211ee765f910df76837548bdadd4e959 (patch)
tree499b29166c04fa62cb946c7d395f8a5299c78fbf /include/mgl/system
parentc4f84e1969f4c856a5bf0352e99fcb73a4cf56cf (diff)
Add dynamic font atlas creation (not finished)
Diffstat (limited to 'include/mgl/system')
-rw-r--r--include/mgl/system/fileutils.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mgl/system/fileutils.h b/include/mgl/system/fileutils.h
index 5e45cb3..5add345 100644
--- a/include/mgl/system/fileutils.h
+++ b/include/mgl/system/fileutils.h
@@ -4,6 +4,8 @@
#include <stddef.h>
#include <stdbool.h>
+typedef struct mgl_memory_mapped_file mgl_memory_mapped_file;
+
typedef struct {
unsigned char *data;
size_t size;
@@ -13,11 +15,11 @@ typedef struct {
bool null_terminated; /* false by default */
} mgl_file_load_options;
-typedef struct {
+struct mgl_memory_mapped_file {
void *data;
size_t size;
int fd;
-} mgl_memory_mapped_file;
+};
typedef struct {
bool readable; /* true by default */