summaryrefslogtreecommitdiffstats
path: root/src/fiasco2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fiasco2.h')
-rw-r--r--src/fiasco2.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fiasco2.h b/src/fiasco2.h
new file mode 100644
index 0000000..3c715c3
--- /dev/null
+++ b/src/fiasco2.h
@@ -0,0 +1,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);