diff options
author | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-04-21 09:53:16 -0700 |
---|---|---|
committer | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-04-21 09:53:16 -0700 |
commit | 731660cc2060f3bfdf5cd916bce1573985df6408 (patch) | |
tree | 5493d8a4236ac76e365ecb83f900ff5830a8ce27 /com32/gplinclude | |
parent | d1890409251949b80c2026557b9b12ca00d55144 (diff) | |
download | syslinux-731660cc2060f3bfdf5cd916bce1573985df6408.tar.gz |
gpllib: Move partition declarations to disk/partition.h
Add a new file for partition related structures.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/gplinclude')
-rw-r--r-- | com32/gplinclude/disk/partition.h | 23 | ||||
-rw-r--r-- | com32/gplinclude/disk/util.h | 17 |
2 files changed, 23 insertions, 17 deletions
diff --git a/com32/gplinclude/disk/partition.h b/com32/gplinclude/disk/partition.h new file mode 100644 index 00000000..3bffa89e --- /dev/null +++ b/com32/gplinclude/disk/partition.h @@ -0,0 +1,23 @@ +#ifndef _PARTITION_H_ +#define _PARTITION_H_ + +#include <stdint.h> + +#define PARTITION_TABLES_OFFSET 0x1be + +/* A DOS partition table entry */ +struct part_entry { + uint8_t active_flag; /* 0x80 if "active" */ + uint8_t start_head; + uint8_t start_sect; + uint8_t start_cyl; + uint8_t ostype; + uint8_t end_head; + uint8_t end_sect; + uint8_t end_cyl; + uint32_t start_lba; + uint32_t length; +} __attribute__((packed)); + +void get_label(int label, char** buffer_label); +#endif /* _PARTITION_H_ */ diff --git a/com32/gplinclude/disk/util.h b/com32/gplinclude/disk/util.h index b6cb1850..dd0d5c02 100644 --- a/com32/gplinclude/disk/util.h +++ b/com32/gplinclude/disk/util.h @@ -3,23 +3,6 @@ #include <com32.h> -#define PARTITION_TABLES_OFFSET 0x1be -/* A DOS partition table entry */ -struct part_entry { - uint8_t active_flag; /* 0x80 if "active" */ - uint8_t start_head; - uint8_t start_sect; - uint8_t start_cyl; - uint8_t ostype; - uint8_t end_head; - uint8_t end_sect; - uint8_t end_cyl; - uint32_t start_lba; - uint32_t length; -} __attribute__((packed)); - int int13_retry(const com32sys_t *inreg, com32sys_t *outreg); void get_error(const int, char**); -void get_label(int label, char** buffer_label); - #endif /* _UTIL_H_ */ |