diff options
author | pancake <pancake@dazo> | 2007-10-11 03:14:11 +0200 |
---|---|---|
committer | pancake <pancake@dazo> | 2007-10-11 03:14:11 +0200 |
commit | d15412a788cacc7108bf94151896ded19b5f504d (patch) | |
tree | 1ade9b325cd4f8601f75da73434dccdc1ff7edf6 /src/main.h | |
parent | 85fdbfb35437f5ab8a449235f2c86f410770925f (diff) | |
download | 0xFFFF-d15412a788cacc7108bf94151896ded19b5f504d.tar.bz2 |
* Add documentation for the FIASCO format
* Initial fiasco writer api
* Lot of new checks and code cleanup
* fiasco callback now receives a filedescriptor inside header_t
- the lseek and data free is autonatically done by the main loop
* Split fiasco_data_read() code, useful for streams (embeddeds low mem footprint)
* Add '-P' flag to create a new fiasco pack
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -78,8 +78,15 @@ extern char *modes[]; extern char *root_devices[]; // fiasco +int openfiasco(char *name); +int fiasco_new(const char *filename, const char *name); +void fiasco_data_read(struct header_t *header); +int fiasco_add_eof(int fd); extern void (*fiasco_callback)(struct header_t *header); +int fiasco_add(int fd, const char *name, const char *file, const char *version); +int fiasco_pack(int optind, char *argv[]); struct header_t { + int fd; char fwname[128]; char name[128]; char version[128]; |