bigbiff bigbiff | e60683a | 2013-02-22 20:55:50 -0500 | [diff] [blame] | 1 | #ifndef BLKID_PARTITIONS_H |
| 2 | #define BLKID_PARTITIONS_H |
| 3 | |
| 4 | #include "blkidP.h" |
| 5 | #include "blkid_parttypes.h" |
| 6 | |
| 7 | extern int blkid_partitions_get_flags(blkid_probe pr); |
| 8 | |
| 9 | extern blkid_parttable blkid_partlist_new_parttable(blkid_partlist ls, |
| 10 | const char *type, blkid_loff_t offset); |
| 11 | |
| 12 | extern int blkid_parttable_set_id(blkid_parttable tab, const unsigned char *id); |
| 13 | |
| 14 | extern blkid_partition blkid_partlist_add_partition(blkid_partlist ls, |
| 15 | blkid_parttable tab, |
| 16 | blkid_loff_t start, blkid_loff_t size); |
| 17 | |
| 18 | extern int blkid_partlist_set_partno(blkid_partlist ls, int partno); |
| 19 | extern int blkid_partlist_increment_partno(blkid_partlist ls); |
| 20 | |
| 21 | extern blkid_partition blkid_partlist_get_parent(blkid_partlist ls); |
| 22 | |
| 23 | extern int blkid_partitions_do_subprobe(blkid_probe pr, |
| 24 | blkid_partition parent, const struct blkid_idinfo *id); |
| 25 | |
| 26 | extern int blkid_partitions_need_typeonly(blkid_probe pr); |
| 27 | extern int blkid_is_nested_dimension(blkid_partition par, |
| 28 | blkid_loff_t start, blkid_loff_t size); |
| 29 | |
| 30 | extern int blkid_partition_set_name(blkid_partition par, |
| 31 | const unsigned char *name, size_t len); |
| 32 | |
| 33 | extern int blkid_partition_set_utf8name(blkid_partition par, |
| 34 | const unsigned char *name, size_t len, int enc); |
| 35 | |
| 36 | extern int blkid_partition_set_uuid(blkid_partition par, |
| 37 | const unsigned char *uuid); |
| 38 | |
| 39 | extern int blkid_partition_set_type(blkid_partition par, int type); |
| 40 | |
| 41 | extern int blkid_partition_set_type_string(blkid_partition par, |
| 42 | const unsigned char *type, size_t len); |
| 43 | |
| 44 | extern int blkid_partition_set_type_uuid(blkid_partition par, |
| 45 | const unsigned char *uuid); |
| 46 | |
| 47 | extern int blkid_partition_set_flags(blkid_partition par, unsigned long long flags); |
| 48 | |
| 49 | /* |
| 50 | * partition probers |
| 51 | */ |
| 52 | extern const struct blkid_idinfo aix_pt_idinfo; |
| 53 | extern const struct blkid_idinfo bsd_pt_idinfo; |
| 54 | extern const struct blkid_idinfo unixware_pt_idinfo; |
| 55 | extern const struct blkid_idinfo solaris_x86_pt_idinfo; |
| 56 | extern const struct blkid_idinfo sun_pt_idinfo; |
| 57 | extern const struct blkid_idinfo sgi_pt_idinfo; |
| 58 | extern const struct blkid_idinfo mac_pt_idinfo; |
| 59 | extern const struct blkid_idinfo dos_pt_idinfo; |
| 60 | extern const struct blkid_idinfo minix_pt_idinfo; |
| 61 | extern const struct blkid_idinfo gpt_pt_idinfo; |
| 62 | extern const struct blkid_idinfo ultrix_pt_idinfo; |
| 63 | |
| 64 | #endif /* BLKID_PARTITIONS_H */ |