home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
misc
/
src
/
install
/
methods.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-09-18
|
1KB
|
37 lines
#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, struct netConfig * netc,
struct netInterface * intf, struct driversLoaded ** dl);
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 netConfig * netc,
struct netInterface * intf, struct driversLoaded ** dl);
struct installMethod * findInstallMethod(char * argptr);
int loadFloppyRoot(struct installMethod * method, char * message);
int floppyRoot(struct installMethod * method, struct netConfig * netc,
struct netInterface * intf, struct driversLoaded ** dl);
#endif