aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/heap.h5
-rw-r--r--include/initrd.h1
-rw-r--r--include/task.h2
3 files changed, 8 insertions, 0 deletions
diff --git a/include/heap.h b/include/heap.h
index 593ce09..343e983 100644
--- a/include/heap.h
+++ b/include/heap.h
@@ -23,6 +23,11 @@
#include <stdint.h>
+typedef struct {
+ uint32_t size;
+ void *next;
+} __attribute__ ((packed)) alloc_t;
+
/**
* Initializes memory management of the given heap.
* No overflow stuff is done, so...
diff --git a/include/initrd.h b/include/initrd.h
index 3957066..47f81c4 100644
--- a/include/initrd.h
+++ b/include/initrd.h
@@ -38,6 +38,7 @@ uint8_t initrd_validate(void);
* @return the file's name, or zero if not found
*/
char *initrd_getfile(uint32_t index);
+char *initrd_getname(uint32_t index);
/**
* Gets contents of the given file.
diff --git a/include/task.h b/include/task.h
index 555a470..0eb48c0 100644
--- a/include/task.h
+++ b/include/task.h
@@ -54,4 +54,6 @@ void task_start(void (*task)(void), uint16_t stackSize);
*/
void task_hold(uint8_t hold);
+//int fork(void);
+
#endif // TASK_H_