Loading...
Searching...
No Matches
Go to the documentation of this file.
4# define NULL_IF_DISCOVER_ONLY(val) NULL
6# define NULL_IF_DISCOVER_ONLY(val) val
9#define PT_define_limit_functions(PT_type) \
12PT_type##_partition_check (const PedPartition *part) \
14 return ptt_partition_max_start_len (#PT_type, part); \
18PT_type##_partition_max_start_sector (void) \
21 int err = ptt_partition_max_start_sector (#PT_type, &max); \
22 PED_ASSERT (err == 0); \
27PT_type##_partition_max_length (void) \
30 int err = ptt_partition_max_length (#PT_type, &max); \
31 PED_ASSERT (err == 0); \
35#define PT_op_function_initializers(PT_type) \
36probe: PT_type##_probe, \
37alloc: PT_type##_alloc, \
38duplicate: PT_type##_duplicate, \
39free: PT_type##_free, \
40read: PT_type##_read, \
41partition_new: PT_type##_partition_new, \
42partition_duplicate: PT_type##_partition_duplicate, \
43partition_set_flag: PT_type##_partition_set_flag, \
44partition_get_flag: PT_type##_partition_get_flag, \
45partition_set_system: PT_type##_partition_set_system, \
46partition_is_flag_available: PT_type##_partition_is_flag_available, \
47partition_align: PT_type##_partition_align, \
48partition_destroy: PT_type##_partition_destroy, \
49partition_enumerate: PT_type##_partition_enumerate, \
50alloc_metadata: PT_type##_alloc_metadata, \
51get_max_primary_partition_count: PT_type##_get_max_primary_partition_count, \
52get_max_supported_partition_count:PT_type##_get_max_supported_partition_count,\
53partition_check: PT_type##_partition_check, \
54max_length: PT_type##_partition_max_length, \
55max_start_sector: PT_type##_partition_max_start_sector