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