diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-07-14 10:33:15 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-07-14 10:33:15 +0200 |
commit | f8d3fa0ecd01a3164252fb1de93f4f1e1a2bf763 (patch) | |
tree | 8da2caa7c8d19cc2ed31ea964dabaaf93f839179 /src/fiasco2.h | |
parent | f62628bf29ecd6a2fc1fe84386e1c330f39e8eb5 (diff) | |
download | 0xFFFF-f8d3fa0ecd01a3164252fb1de93f4f1e1a2bf763.tar.bz2 |
Prepaired new code for fiasco images
Diffstat (limited to 'src/fiasco2.h')
-rw-r--r-- | src/fiasco2.h | 15 |
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); |