summaryrefslogtreecommitdiffstats
path: root/src/fiasco2.h
blob: 3c715c307221151e1167ba7fa8937aea5caa4c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "image.h"

struct fiasco {
	char swver[12];
	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);