struct disk_part_iter;
/* Partition-/scheme-specific routine returning the next partition */
-#define disk_part_iter_func_decl(func) \
-struct disk_part_iter *func(struct disk_part_iter *part)
-typedef disk_part_iter_func_decl((*disk_part_iter_func));
+typedef struct disk_part_iter *(*disk_part_iter_func) (struct disk_part_iter *
+ part);
/* Contains details for a partition under examination */
struct disk_part_iter {
} private;
};
-static disk_part_iter_func_decl(next_ebr_part)
+static struct disk_part_iter *next_ebr_part(struct disk_part_iter *part)
{
const struct part_entry *ebr_table;
const struct part_entry *parent_table =
return NULL;
}
-static disk_part_iter_func_decl(next_mbr_part)
+static struct disk_part_iter *next_mbr_part(struct disk_part_iter *part)
{
struct disk_part_iter *ebr_part;
/* Look at the partition table */
}
#endif
-static disk_part_iter_func_decl(next_gpt_part)
+static struct disk_part_iter *next_gpt_part(struct disk_part_iter *part)
{
const struct gpt_part *gpt_part = NULL;
return NULL;
}
-static disk_part_iter_func_decl(get_first_partition)
+static struct disk_part_iter *get_first_partition(struct disk_part_iter *part)
{
const struct gpt *gpt_candidate;