[misc] separated ms-sys dependency from application

* set ms-sys to be built as a library
* also removed unused code from badblocks.c
This commit is contained in:
Pete Batard 2012-01-11 00:05:16 +00:00
parent 01d1d74f04
commit dc010cc418
56 changed files with 1129 additions and 459 deletions

View file

@ -0,0 +1,16 @@
#ifndef PARTITION_INFO_H
#define PARTITION_INFO_H
/* Writes the number of heads to a partition
returns TRUE on success, otherwise FALSE */
int write_partition_number_of_heads(FILE *fp, int iHeads);
/* Writes the start sector number to a partition (also known as
"number of hidden sectors"), returns TRUE on success, otherwise FALSE */
int write_partition_start_sector_number(FILE *fp, int iStartSector);
/* Writes a physical disk drive id of 0x80 (for C:) to a partition */
int write_partition_physical_disk_drive_id_fat16(FILE *fp);
int write_partition_physical_disk_drive_id_fat32(FILE *fp);
#endif