diff options
author | Karel Zak | 2013-01-18 16:11:40 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-11 12:47:30 +0100 |
commit | bddd84e7c5acfe38ebb079e6fd6f3226a27cc2aa (patch) | |
tree | 83cd96fa44af501ae48da202d1c66634ea38c20e /fdisks/fdisk.h | |
parent | libfdisk: add label->changed flag (diff) | |
download | kernel-qcow2-util-linux-bddd84e7c5acfe38ebb079e6fd6f3226a27cc2aa.tar.gz kernel-qcow2-util-linux-bddd84e7c5acfe38ebb079e6fd6f3226a27cc2aa.tar.xz kernel-qcow2-util-linux-bddd84e7c5acfe38ebb079e6fd6f3226a27cc2aa.zip |
fdisk: use libfdisk label->changed
The patch is huge because it's necessary to add a pointer context to
all read_<foo> functions.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.h')
-rw-r--r-- | fdisks/fdisk.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fdisks/fdisk.h b/fdisks/fdisk.h index 4196d7bda..ae9d3a127 100644 --- a/fdisks/fdisk.h +++ b/fdisks/fdisk.h @@ -71,8 +71,8 @@ extern void check(struct fdisk_context *cxt, int n, unsigned int h, unsigned int extern void fatal(struct fdisk_context *cxt, enum failure why); extern int get_partition(struct fdisk_context *cxt, int warn, int max); extern void list_partition_types(struct fdisk_context *cxt); -extern int read_line (int *asked); -extern char read_char(char *mesg); +extern int read_line(struct fdisk_context *cxt, int *asked); +extern char read_char(struct fdisk_context *cxt, char *mesg); extern struct fdisk_parttype *read_partition_type(struct fdisk_context *cxt); extern void reread_partition_table(struct fdisk_context *cxt, int leave); extern struct partition *get_part_table(int); @@ -85,9 +85,7 @@ extern void print_partition_size(struct fdisk_context *cxt, int num, sector_t st extern void fill_bounds(sector_t *first, sector_t *last); extern char *partition_type(struct fdisk_context *cxt, unsigned char type); -extern char read_chars(char *mesg); -extern void set_changed(int); -extern void set_all_unchanged(void); +extern char read_chars(struct fdisk_context *cxt, char *mesg); extern int warn_geometry(struct fdisk_context *cxt); extern void warn_limits(struct fdisk_context *cxt); extern unsigned int read_int_with_suffix(struct fdisk_context *cxt, @@ -102,7 +100,6 @@ extern const char * str_units(int); extern sector_t get_nr_sects(struct partition *p); extern int nowarn; -extern int MBRbuffer_changed; /* start_sect and nr_sects are stored little endian on all machines */ /* moreover, they are not aligned correctly */ |