summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.h
diff options
context:
space:
mode:
authorKarel Zak2013-07-10 14:17:58 +0200
committerKarel Zak2013-09-16 16:47:06 +0200
commita47fec81b2a9eae2712da86c75db27cf76fae4b4 (patch)
tree8612cb31bd4891e8e49617d4014c698e66510958 /fdisks/fdisk.h
parentfdisk: (bsd) remove printf() from the driver code (diff)
downloadkernel-qcow2-util-linux-a47fec81b2a9eae2712da86c75db27cf76fae4b4.tar.gz
kernel-qcow2-util-linux-a47fec81b2a9eae2712da86c75db27cf76fae4b4.tar.xz
kernel-qcow2-util-linux-a47fec81b2a9eae2712da86c75db27cf76fae4b4.zip
fdisk: allow to exchange context pointer in menu callbacks
... to make it possible to switch to nested contexts (nested partition tables). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.h')
-rw-r--r--fdisks/fdisk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisks/fdisk.h b/fdisks/fdisk.h
index 9c40d314b..05721bbd8 100644
--- a/fdisks/fdisk.h
+++ b/fdisks/fdisk.h
@@ -25,7 +25,7 @@ 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 process_fdisk_menu(struct fdisk_context **cxt);
extern int ask_callback(struct fdisk_context *cxt, struct fdisk_ask *ask,
void *data __attribute__((__unused__)));