kern

diff src/part.h @ 88:a398bf73fe93

- added the partition table parsing code - starting with the filesystem
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 08 Dec 2011 13:34:47 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/part.h	Thu Dec 08 13:34:47 2011 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +#ifndef PART_H_
     1.5 +#define PART_H_
     1.6 +
     1.7 +#include <inttypes.h>
     1.8 +
     1.9 +struct partition {
    1.10 +	uint32_t start_sect;
    1.11 +	size_t size_sect;
    1.12 +
    1.13 +	unsigned int attr;
    1.14 +
    1.15 +	struct partition *next;
    1.16 +};
    1.17 +
    1.18 +struct partition *get_part_list(int devno);
    1.19 +void free_part_list(struct partition *plist);
    1.20 +
    1.21 +int get_part_type(struct partition *p);
    1.22 +
    1.23 +#endif	/* PART_H_ */