summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/common.h b/src/common.h
index 1de1042..93bb565 100644
--- a/src/common.h
+++ b/src/common.h
@@ -330,20 +330,20 @@ struct arch_fnct_struct
const char *part_name;
const char *part_name_option;
const char *msg_part_type;
- list_part_t *(*read_part)(disk_t *disk_car, const int verbose,const int saveheader);
- int (*write_part)(disk_t *disk_car, const list_part_t *list_part, const int ro, const int verbose, const int align);
- list_part_t *(*init_part_order)(const disk_t *disk_car, list_part_t *list_part);
+ list_part_t *(*read_part)(disk_t *disk, const int verbose,const int saveheader);
+ int (*write_part)(disk_t *disk, const list_part_t *list_part, const int ro, const int verbose, const int align);
+ list_part_t *(*init_part_order)(const disk_t *disk, list_part_t *list_part);
/* geometry must be initialized to 0,0,0 in get_geometry_from_mbr()*/
int (*get_geometry_from_mbr)(const unsigned char *buffer, const int verbose, CHSgeometry_t *geometry);
- int (*check_part)(disk_t *disk_car,const int verbose,partition_t *partition, const int saveheader);
- int (*write_MBR_code)(disk_t *disk_car);
- void (*set_prev_status)(const disk_t *disk_car, partition_t *partition);
- void (*set_next_status)(const disk_t *disk_car, partition_t *partition);
+ int (*check_part)(disk_t *disk,const int verbose,partition_t *partition, const int saveheader);
+ int (*write_MBR_code)(disk_t *disk);
+ void (*set_prev_status)(const disk_t *disk, partition_t *partition);
+ void (*set_next_status)(const disk_t *disk, partition_t *partition);
int (*test_structure)(list_part_t *list_part);
unsigned int (*get_part_type)(const partition_t *partition);
int (*set_part_type)(partition_t *partition, unsigned int part_type);
- void (*init_structure)(const disk_t *disk_car,list_part_t *list_part, const int verbose);
- int (*erase_list_part)(disk_t *disk_car);
+ void (*init_structure)(const disk_t *disk,list_part_t *list_part, const int verbose);
+ int (*erase_list_part)(disk_t *disk);
const char *(*get_partition_typename)(const partition_t *partition);
int (*is_part_known)(const partition_t *partition);
};
@@ -360,13 +360,13 @@ struct param_disk_struct
char *model;
char *serial_no;
char *fw_rev;
- const char *(*description)(disk_t *disk_car);
- const char *(*description_short)(disk_t *disk_car);
+ const char *(*description)(disk_t *disk);
+ const char *(*description_short)(disk_t *disk);
void *(*pread_fast)(disk_t *disk, void *buf, const unsigned int count, const uint64_t offset);
- int (*pread)(disk_t *disk_car, void *buf, const unsigned int count, const uint64_t offset);
- int (*pwrite)(disk_t *disk_car, const void *buf, const unsigned int count, const uint64_t offset);
- int (*sync)(disk_t *disk_car);
- int (*clean)(disk_t *disk_car);
+ int (*pread)(disk_t *disk, void *buf, const unsigned int count, const uint64_t offset);
+ int (*pwrite)(disk_t *disk, const void *buf, const unsigned int count, const uint64_t offset);
+ int (*sync)(disk_t *disk);
+ void (*clean)(disk_t *disk);
const arch_fnct_t *arch;
const arch_fnct_t *arch_autodetected;
void *data;