summaryrefslogblamecommitdiffstats
path: root/ird/initrd.h
blob: f236fa16ea3c9ebac1dacc50858d22f020ca5298 (plain) (tree)




















                                                 
#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