home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
misc
/
src
/
install
/
hd.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-10-15
|
617b
|
31 lines
#ifndef H_HD
#define H_HD
#include "devices.h"
enum partitionTypes { PART_EXT2, PART_SWAP, PART_DOS, PART_HPFS,
PART_NFS, PART_FAT32, PART_OTHER, PART_IGNORE };
struct partition {
char device[10];
int size; /* in 1k blocks */
enum partitionTypes type;
int begin;
int end;
char tagName[25];
char * bootLabel;
int defaultBoot;
} ;
struct partitionTable {
struct partition * parts;
int count;
};
int findAllPartitions(struct deviceInfo * devices,
struct partitionTable * table);
int partitionDrives(void);
int getDriveList(char *** drives, int * num);
#endif