From 7b575fcc3bea4f622d700b2ebb1b8b3fb2f1767d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 24 Sep 2012 13:24:09 +0200 Subject: fdisk: improve list partition types - add fdisk_parttype->typestr for types like GPT UUID or Mac - list typestr if specified Signed-off-by: Karel Zak --- fdisks/fdisk.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fdisks/fdisk.h') diff --git a/fdisks/fdisk.h b/fdisks/fdisk.h index 8221cd9a3..631c47fc8 100644 --- a/fdisks/fdisk.h +++ b/fdisks/fdisk.h @@ -104,7 +104,8 @@ typedef unsigned long long sector_t; */ struct fdisk_parttype { unsigned int type; /* type as number or zero */ - char *name; /* description */ + char *name; /* description */ + char *typestr; /* type as string or NULL */ }; /* @@ -200,7 +201,7 @@ extern void check(struct fdisk_context *cxt, int n, unsigned int h, unsigned int extern void change_units(struct fdisk_context *cxt); extern void fatal(struct fdisk_context *cxt, enum failure why); extern int get_partition(struct fdisk_context *cxt, int warn, int max); -extern void list_types(struct fdisk_context *cxt); +extern void list_partition_types(struct fdisk_context *cxt); extern int read_line (int *asked); extern char read_char(char *mesg); extern int read_hex(struct fdisk_context *cxt); -- cgit v1.2.3-55-g7522