home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 December / CHIPNET Aralık 1997.iso / linux / redhat / misc / src / install / methods.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-11  |  1.0 KB  |  33 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);
  14.     int (*prepareRoot)(struct installMethod * method, 
  15.                struct partitionTable table, struct netConfig * netc,
  16.                struct netInterface * intf, struct driversLoaded ** dl);
  17.     int (*getFile)(struct installMethod * method, char * name, 
  18.             char ** realName, int isPreskel);
  19.     int (*getPackageSet)(struct installMethod * method,
  20.              struct pkgSet * ps);
  21.     int (*getComponentSet)(struct installMethod * method,
  22.                struct pkgSet * ps,
  23.                struct componentSet * cs);
  24.     int (*prepareMedia)(struct installMethod * method, struct fstab * fstab);
  25.     void * data;        /* isn't saved between early and late */
  26. };
  27.  
  28. int chooseInstallMethod(struct installMethod ** method);
  29. struct installMethod * findInstallMethod(char * argptr);
  30. int floppyRoot(struct installMethod * method);
  31.  
  32. #endif
  33.