diff options
Diffstat (limited to 'include/device/initrd.h')
-rw-r--r-- | include/device/initrd.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/device/initrd.h b/include/device/initrd.h new file mode 100644 index 0000000..eaf3157 --- /dev/null +++ b/include/device/initrd.h @@ -0,0 +1,29 @@ +#ifndef _JOVE_DEV_INITRD_H +#define _JOVE_DEV_INITRD_H 1 + +#include <stddef.h> + +typedef struct tarHeader +{ + char name[100]; + char mode[8]; + char owner[8]; + char group[8]; + char size[12]; + char modified[12]; + char checksum[8]; + char link; + char linkname[100]; +} tar_header_t; + +typedef union tarBlock { + tar_header_t header; + char data[512]; +} tar_block_t; + +void initrd_setup(void); + +tar_header_t *initrd_find_file(const char *filename); +int initrd_file_size(tar_header_t *header); + +#endif |