home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 May / pcp151c.iso / misc / src / install / hd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-05  |  734 b   |  38 lines

  1. #ifndef H_HD
  2. #define H_HD
  3.  
  4. #include "devices.h"
  5.  
  6. #define PART_EXT2    (1 << 0)
  7. #define PART_SWAP    (1 << 1)
  8. #define PART_DOS    (1 << 2)
  9. #define PART_HPFS    (1 << 3)
  10. #define PART_NFS    (1 << 4)
  11. #define PART_FAT32    (1 << 5)
  12. #define PART_OTHER    (1 << 6)
  13. #define PART_IGNORE    (1 << 7)
  14.  
  15. struct partition {
  16.     char device[10];
  17.     int size;                /* in 1k blocks */
  18.     unsigned int type;
  19.     int begin;
  20.     int end;
  21.     char tagName[25];
  22.     char * bootLabel;
  23.     int defaultBoot;
  24. } ;
  25.  
  26. struct partitionTable {
  27.     struct partition * parts;
  28.     int count;
  29. };
  30.  
  31. int findAllPartitions(struct deviceInfo * devices, 
  32.               struct partitionTable * table);
  33. int partitionDrives(void);
  34. int getDriveList(char *** drives, int * num);
  35. void needReboot(void);
  36.  
  37. #endif
  38.