diff options
author | Peter H. Froehlich <peter.hans.froehlich@gmail.com> | 2021-04-25 18:15:18 +0200 |
---|---|---|
committer | Peter H. Froehlich <peter.hans.froehlich@gmail.com> | 2021-04-25 18:15:18 +0200 |
commit | 8f272adf9273b2379d4647254d1e7b191ff704ca (patch) | |
tree | 3a5f1a2414c5b2b95f3288514db84d21592587d5 /part.h | |
parent | 360f850c46d9301a7e1177afe9b337fadb7a516a (diff) | |
download | mkgpt-8f272adf9273b2379d4647254d1e7b191ff704ca.tar.gz |
Rework partition struct and partition name.
Diffstat (limited to 'part.h')
-rw-r--r-- | part.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/part.h b/part.h index 7890ca8..a04ef02 100644 --- a/part.h +++ b/part.h @@ -26,22 +26,22 @@ #ifndef PART_H #define PART_H -#include <stdio.h> -#include <stdint.h> #include "guid.h" -typedef struct _part { +#include <stdint.h> +#include <stdio.h> + +struct partition { GUID type; GUID uuid; - int id; uint64_t attrs; - int sect_start; - int sect_length; long src_length; - char *name; FILE *src; - - struct _part *next; /* TODO why build a list? */ -} PART; + struct partition *next; /* TODO why build a list? */ + int id; + int sect_start; + int sect_length; + char name[52]; +}; #endif |