From a410f8df0f4dcbd32986890111397f0b9309cd51 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 21 May 2013 15:06:11 +0200 Subject: 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 --- fdisks/fdisk.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fdisks/fdisk.h') 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__))); -- cgit v1.2.3-55-g7522