* 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
This commit is contained in:
pancake committed 2007-10-11 03:14:11 +02:00
1 parent 85fdbfb354
commit d15412a788
3 files changed
+156 -63

No files matched your search

+7
View File
@@ -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];