diff options
author | Karel Zak | 2013-04-29 15:29:48 +0200 |
---|---|---|
committer | Karel Zak | 2013-09-16 16:46:53 +0200 |
commit | 0c870c1c73985a5e153a35209a650bcacce94c5b (patch) | |
tree | 655307d6d85d41c47d707563a244d936d4c26429 /libfdisk/src/fdiskP.h | |
parent | lib/tt: add TT_FL_FREEDATA (diff) | |
download | kernel-qcow2-util-linux-0c870c1c73985a5e153a35209a650bcacce94c5b.tar.gz kernel-qcow2-util-linux-0c870c1c73985a5e153a35209a650bcacce94c5b.tar.xz kernel-qcow2-util-linux-0c870c1c73985a5e153a35209a650bcacce94c5b.zip |
libfdisk: add new 'ask' type TABLE
The new type could be used to print table-like output (for example
list of the partitions).
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/fdiskP.h')
-rw-r--r-- | libfdisk/src/fdiskP.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h index 541b75396..01b9ec6f4 100644 --- a/libfdisk/src/fdiskP.h +++ b/libfdisk/src/fdiskP.h @@ -21,6 +21,7 @@ #include "libfdisk.h" #include "nls.h" /* temporary before dialog API will be implamented */ +#include "tt.h" /* features */ #define CONFIG_LIBFDISK_ASSERT @@ -237,6 +238,8 @@ struct fdisk_ask { struct ask_yesno { int result; /* TRUE or FALSE */ } yesno; + /* FDISK_ASKTYPE_TABLE, see include/tt.h */ + struct tt *table; } data; }; @@ -319,4 +322,7 @@ extern void gpt_list_table(struct fdisk_context *cxt, int xtra); /* ask.c */ extern int fdisk_ask_partnum(struct fdisk_context *cxt, size_t *partnum, int wantnew); +extern struct tt *fdisk_ask_get_table(struct fdisk_ask *ask); +extern int fdisk_print_table(struct fdisk_context *cxt, struct tt *tb); + #endif /* _LIBFDISK_PRIVATE_H */ |