summaryrefslogtreecommitdiff
path: root/include/platform/osal.h
diff options
context:
space:
mode:
author0x221E2026-06-14 14:00:58 +0200
committer0x221E2026-06-14 14:00:58 +0200
commit56796c08d6388ad0eb0539d166cd12964cfeb7e9 (patch)
tree0a478620c3f07a72719fd22c12cbed5aa077234e /include/platform/osal.h
initial commit
Diffstat (limited to 'include/platform/osal.h')
-rw-r--r--include/platform/osal.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/platform/osal.h b/include/platform/osal.h
new file mode 100644
index 0000000..8eee16b
--- /dev/null
+++ b/include/platform/osal.h
@@ -0,0 +1,23 @@
+#ifndef OSAL_H
+#define OSAL_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+void* mem_alloc(size_t s);
+void mem_free(void *p);
+
+#define FILE_READ (uint8_t) 0b00000001
+#define FILE_WRITE (uint8_t) 0b00000010
+
+struct file {
+ const char *path;
+ const char *buffer;
+ const size_t size;
+};
+
+struct file open_file(const char *path, int flags);
+
+void print(const char *fmt, ...);
+
+#endif