X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=helper%2Fhelper.h;h=e0d1fbb545c5af117edbdfab902c6a70b562fed4;hb=f6e12eccb65bef3eb57631e54199d8b1610e7c5c;hp=9bb637aa608e0e751b494b2d7065800cf8b756a3;hpb=15c230a50d78435716b701a68709b3576118f27b;p=febootstrap.git diff --git a/helper/helper.h b/helper/helper.h index 9bb637a..e0d1fbb 100644 --- a/helper/helper.h +++ b/helper/helper.h @@ -23,8 +23,15 @@ #include "fts_.h" struct writer { - /* Start a new appliance, finish one off. */ - void (*wr_start) (const char *appliance); + /* Start building a new appliance. + * 'appliance' is the output appliance. + * 'initrd' is the mini-initrd to create (only used for ext2 output). + * 'modpath' is the kernel module path. + */ + void (*wr_start) (const char *hostcpu, const char *appliance, + const char *modpath, const char *initrd); + + /* Finish off the appliance. */ void (*wr_end) (void); /* Append the named host file to the appliance being built. The @@ -45,11 +52,17 @@ extern struct timeval start_t; extern int verbose; /* appliance.c */ -extern void create_appliance (char **inputs, int nr_inputs, const char *whitelist, const char *modpath, const char *appliance, struct writer *writer); +extern void create_appliance (const char *hostcpu, char **inputs, int nr_inputs, const char *whitelist, const char *modpath, const char *initrd, const char *appliance, struct writer *writer); + +/* checksum.c */ +extern struct writer checksum_writer; /* cpio.c */ extern struct writer cpio_writer; +/* ext2.c */ +extern struct writer ext2_writer; + /* kernel.c */ extern const char *create_kernel (const char *hostcpu, const char *kernel);