diff options
Diffstat (limited to 'src/prototypes.h')
-rw-r--r-- | src/prototypes.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/prototypes.h b/src/prototypes.h index 630e5c0..6ad5bc8 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -1,38 +1,38 @@ /* gpt.c */ -int main(int argc, char *argv[]); +int main (int argc, char *argv[]); /* version.c */ /* util.c */ -void hexdump(FILE *f, uint8_t *data, int s, int l); -void utf16_to_ascii(uint16_t *u16, int u16_len, uint8_t *u8, int u8_len); +void hexdump (FILE * f, uint8_t * data, int s, int l); +void utf16_to_ascii (uint16_t * u16, int u16_len, uint8_t * u8, int u8_len); /* guid.c */ -int guid_cmp(GUID *a, GUID *b); -char *guid_to_a(GUID g); -int a_to_guid(char *a, GUID *g); -GUID guid_random(void); +int guid_cmp (GUID * a, GUID * b); +char *guid_to_a (GUID g); +int a_to_guid (char *a, GUID * g); +GUID guid_random (void); /* crc.c */ -uint32_t crc32(uint32_t crc, const void *_buf, int len); +uint32_t crc32 (uint32_t crc, const void *_buf, int len); /* header.c */ -void header_calc_crc(GPT_header *h); -GPT_header header_new(GUID disk_guid, int lbas, int alt); -uint32_t header_calc_ent_crc(DISK *d, GPT_header *h); -void header_show(DISK *d, GPT_header *h); +void header_calc_crc (GPT_header * h); +GPT_header header_new (GUID disk_guid, int lbas, int alt); +uint32_t header_calc_ent_crc (DISK * d, GPT_header * h); +void header_show (DISK * d, GPT_header * h); /* disk.c */ -DISK *disk_open(char *fn); -void disk_read(DISK *d, void *buf, uint64_t lba, int lbas); -void disk_write(DISK *d, void *buf, uint64_t lba, int lbas); -uint64_t disk_lbas(DISK *d); +DISK *disk_open (char *fn); +void disk_read (DISK * d, void *buf, uint64_t lba, int lbas); +void disk_write (DISK * d, void *buf, uint64_t lba, int lbas); +uint64_t disk_lbas (DISK * d); /* pmbr.c */ -void mbr_entry_show(MBR_entry *e); -void mbr_show(MBR *m); -MBR mbr_new(uint64_t lbas); +void mbr_entry_show (MBR_entry * e); +void mbr_show (MBR * m); +MBR mbr_new (uint64_t lbas); /* show.c */ -void show(DISK *d); +void show (DISK * d); /* entry.c */ -void entry_write(DISK *d, GPT_header *h, int n, GPT_entry *e); -GPT_entry entry_read(DISK *d, GPT_header *h, int n); -int entry_empty(GPT_entry *e); -void entry_show(GPT_entry *e); +void entry_write (DISK * d, GPT_header * h, int n, GPT_entry * e); +GPT_entry entry_read (DISK * d, GPT_header * h, int n); +int entry_empty (GPT_entry * e); +void entry_show (GPT_entry * e); /* new.c */ -void new(DISK *d); +void new (DISK * d); /* add.c */ -void add(DISK *d, int n, char *guid, int start, int end); +void add (DISK * d, int n, char *guid, int start, int end); |