home *** CD-ROM | disk | FTP | other *** search
- #ifndef H_METHOD
- #define H_METHOD
-
- #include "hd.h"
- #include "fs.h"
- #include "net.h"
- #include "pkgs.h"
-
- struct installMethod {
- char * name;
- char * abbrev;
- int rmFiles;
- int (*prepareImage)(struct installMethod * method);
- int (*prepareRoot)(struct installMethod * method,
- struct partitionTable table, struct netConfig * netc,
- struct netInterface * intf, struct driversLoaded ** dl);
- int (*getFile)(struct installMethod * method, char * name,
- char ** realName, int isPreskel);
- int (*getPackageSet)(struct installMethod * method,
- struct pkgSet * ps);
- int (*getComponentSet)(struct installMethod * method,
- struct pkgSet * ps,
- struct componentSet * cs);
- int (*prepareMedia)(struct installMethod * method, struct fstab * fstab);
- void * data; /* isn't saved between early and late */
- };
-
- int chooseInstallMethod(struct installMethod ** method);
- struct installMethod * findInstallMethod(char * argptr);
- int floppyRoot(struct installMethod * method);
-
- #endif
-