diff options
author | Karel Zak | 2013-05-21 15:06:11 +0200 |
---|---|---|
committer | Karel Zak | 2013-09-16 16:46:56 +0200 |
commit | a410f8df0f4dcbd32986890111397f0b9309cd51 (patch) | |
tree | 01a32d877455a49f4ce91a22e23cb53f1f3ef9c7 /fdisks/fdisk.h | |
parent | fdisk: use remove read_int() usage from fdisk.c (diff) | |
download | kernel-qcow2-util-linux-a410f8df0f4dcbd32986890111397f0b9309cd51.tar.gz kernel-qcow2-util-linux-a410f8df0f4dcbd32986890111397f0b9309cd51.tar.xz kernel-qcow2-util-linux-a410f8df0f4dcbd32986890111397f0b9309cd51.zip |
fdisk: use new menu infrastructure to verify keys
- use generic function to ask for key
- verify the key against the current menu
- call menu callback if defined
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.h')
-rw-r--r-- | fdisks/fdisk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fdisks/fdisk.h b/fdisks/fdisk.h index c44dd768f..cb7f877b1 100644 --- a/fdisks/fdisk.h +++ b/fdisks/fdisk.h @@ -67,7 +67,11 @@ enum failure { }; +extern int get_user_reply(struct fdisk_context *cxt, + const char *prompt, + char *buf, size_t bufsz); extern int print_fdisk_menu(struct fdisk_context *cxt); +extern int process_fdisk_menu(struct fdisk_context *cxt); extern int ask_callback(struct fdisk_context *cxt, struct fdisk_ask *ask, void *data __attribute__((__unused__))); |