diff options
Diffstat (limited to 'ird/initrd.h')
-rw-r--r-- | ird/initrd.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ird/initrd.h b/ird/initrd.h new file mode 100644 index 0000000..f236fa1 --- /dev/null +++ b/ird/initrd.h @@ -0,0 +1,21 @@ +#ifndef JOVE_INITRD_H +#define JOVE_INITRD_H 1 + +#include <stddef.h> +#include "tar.h" +#include "lib/linkedlist.h" + +struct InitrdFile { + struct InitrdFile *next; + struct TARHeader *header; + const char *name; + size_t size; + const void *data; +}; + +void initrd_setup(void); + +struct InitrdFile *ird_getfile(const char *path); +struct SLinkedList *ird_getfiles(void); + +#endif |