summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.h
diff options
context:
space:
mode:
authorKarel Zak2013-05-21 15:06:11 +0200
committerKarel Zak2013-09-16 16:46:56 +0200
commita410f8df0f4dcbd32986890111397f0b9309cd51 (patch)
tree01a32d877455a49f4ce91a22e23cb53f1f3ef9c7 /fdisks/fdisk.h
parentfdisk: use remove read_int() usage from fdisk.c (diff)
downloadkernel-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.h4
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__)));