summaryrefslogtreecommitdiffstats
path: root/src/fiasco2.h
blob: 6baadbcbb1a7530ca5c5db36f44a6304f8a36044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef FIASCO_H
#define FIASCO_H

#include "image.h"

struct fiasco {
	char name[257];
	char swver[257];
	int fd;
	struct image_list * first;
}

struct fiasco * fiasco_alloc_empty(void);
struct fiasco * fiasco_alloc_from_file(const char * file);
void fiasco_free(struct fiasco * fiasco);
int fiasco_add_image(struct fiasco * fiasco, struct image * image);
int fiasco_write_to_file(struct fiasco * fiasco, const char * file);
int fiasco_unpack(struct fiasco * fiasco, const char * dir);

#endif