summaryrefslogtreecommitdiffstats
path: root/ird/initrd.h
blob: f236fa16ea3c9ebac1dacc50858d22f020ca5298 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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