diff options
author | Karel Zak | 2014-03-10 14:15:36 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:35:15 +0100 |
commit | 4ddd86d5d96f75b8b5191add9b1eaeebb9a548bd (patch) | |
tree | ea7c8c5a9be354ec689562028546a8adad2ba19d /disk-utils/fdisk.h | |
parent | fdisk: merge fdisk-ask.c to fdisk.c (diff) | |
download | kernel-qcow2-util-linux-4ddd86d5d96f75b8b5191add9b1eaeebb9a548bd.tar.gz kernel-qcow2-util-linux-4ddd86d5d96f75b8b5191add9b1eaeebb9a548bd.tar.xz kernel-qcow2-util-linux-4ddd86d5d96f75b8b5191add9b1eaeebb9a548bd.zip |
build-sys: ove fdisks to disk-utils
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.h')
-rw-r--r-- | disk-utils/fdisk.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/disk-utils/fdisk.h b/disk-utils/fdisk.h new file mode 100644 index 000000000..8d8144a7c --- /dev/null +++ b/disk-utils/fdisk.h @@ -0,0 +1,36 @@ +#ifndef UTIL_LINUX_FDISK_H +#define UTIL_LINUX_FDISK_H +/* + fdisk.h +*/ + +#include "c.h" + +/* Let's temporary include private libfdisk header file. The final libfdisk.h + * maybe included when fdisk.c and libfdisk code will be completely spit. + */ +#include "fdiskP.h" +#include "blkdev.h" +#include "colors.h" + +extern int get_user_reply(struct fdisk_context *cxt, + const char *prompt, + char *buf, size_t bufsz); +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__))); + +/* prototypes for fdisk.c */ +extern void dump_firstsector(struct fdisk_context *cxt); +extern void dump_disklabel(struct fdisk_context *cxt); + +extern void list_partition_types(struct fdisk_context *cxt); +extern void list_disk_geometry(struct fdisk_context *cxt); +extern void list_disklabel(struct fdisk_context *cxt); +extern void change_partition_type(struct fdisk_context *cxt); +extern struct fdisk_parttype *ask_partition_type(struct fdisk_context *cxt); + +extern void toggle_dos_compatibility_flag(struct fdisk_context *cxt); + +#endif /* UTIL_LINUX_FDISK_H */ |