void interface_list(disk_t *disk, const int verbose, const int saveheader, const int backup) { list_part_t *list_part; list_part_t *parts; log_info("\nAnalyse "); log_info("%s\n", disk->description(disk)); printf("%s\n", disk->description(disk)); printf(msg_PART_HEADER_LONG); list_part=disk->arch->read_part(disk,verbose,saveheader); for(parts=list_part; parts!=NULL; parts=parts->next) { const char *msg; const partition_t *partition=parts->part; msg=aff_part_aux(AFF_PART_ORDER|AFF_PART_STATUS, disk, partition); printf("%s\n", msg); if(partition->info[0]!='\0') printf(" %s\n", partition->info); } if(backup>0) { partition_save(disk, list_part, verbose); } part_free_list(list_part); }
void log_partition(const disk_t *disk_car, const partition_t *partition) { const char *msg; char buffer_part_size[100]; msg=aff_part_aux(AFF_PART_ORDER|AFF_PART_STATUS, disk_car, partition); log_info("%s",msg); size_to_unit(partition->part_size, buffer_part_size); if(partition->info[0]!='\0') log_info("\n %s, %s", partition->info, buffer_part_size); log_info("\n"); }
void aff_part(WINDOW *window,const unsigned int newline,const disk_t *disk_car,const partition_t *partition) { const char *msg; msg=aff_part_aux(newline, disk_car, partition); wprintw(window,"%s",msg); }
void aff_part_buffer(const unsigned int newline,const disk_t *disk_car,const partition_t *partition) { const char *msg; msg=aff_part_aux(newline, disk_car, partition); screen_buffer_add("%s\n", msg); }