home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 May / pcp151c.iso / misc / src / install / methods.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-14  |  1.3 KB  |  40 lines

  1. #ifndef H_METHOD
  2. #define H_METHOD
  3.  
  4. #include "hd.h"
  5. #include "fs.h"
  6. #include "net.h"
  7. #include "pkgs.h"
  8.  
  9. struct installMethod {
  10.     char * name;
  11.     char * abbrev;
  12.     int rmFiles;
  13.     int (*prepareImage)(struct installMethod * method, struct netInfo * netc,
  14.                 struct intfInfo * intf, int forceSupp,
  15.             struct driversLoaded ** dl);
  16.     int (*prepareRoot)(struct installMethod * method, 
  17.                struct partitionTable table, struct netInfo * netc,
  18.                struct intfInfo * intf, struct driversLoaded ** dl);
  19.     int (*getFile)(struct installMethod * method, char * name, 
  20.             char ** realName);
  21.     int (*getPackageSet)(struct installMethod * method,
  22.              struct pkgSet * ps);
  23.     int (*getComponentSet)(struct installMethod * method,
  24.                struct pkgSet * ps,
  25.                struct componentSet * cs);
  26.     int (*prepareMedia)(struct installMethod * method, struct fstab * fstab);
  27.     void * data;        /* isn't saved between early and late */
  28. };
  29.  
  30. int chooseInstallMethod(int forceSupp, struct installMethod ** method, 
  31.                 struct netInfo * netc,
  32.                 struct intfInfo * intf, struct driversLoaded ** dl);
  33. struct installMethod * findInstallMethod(char * argptr);
  34. int loadFloppyRoot(struct installMethod * method);
  35. int floppyRoot(struct installMethod * method, struct netInfo * netc,
  36.         struct intfInfo * intf, int useSupp,
  37.         struct driversLoaded ** dl);
  38.  
  39. #endif
  40.