summaryrefslogtreecommitdiff
path: root/com32/include
diff options
context:
space:
mode:
authorShao Miller <shao.miller@yrdsb.edu.on.ca>2010-06-28 05:30:06 -0400
committerShao Miller <shao.miller@yrdsb.edu.on.ca>2010-07-10 01:03:07 -0400
commit7e4a36355a113c181d298d679a552d95302fa58c (patch)
tree194f43c3eb2364a18cbb850b3e53ebcca33c1ceb /com32/include
parent26c148f40d3e07519bb772625038d6634e597443 (diff)
downloadsyslinux-7e4a36355a113c181d298d679a552d95302fa58c.tar.gz
chain.c32, libcom32: Move guid_to_str() and str_to_guid()
Moving portions of chain.c32 into libcom32. There might be a better header for these to belong to. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/syslinux/disk.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/com32/include/syslinux/disk.h b/com32/include/syslinux/disk.h
index 108a5685..a1d0aeed 100644
--- a/com32/include/syslinux/disk.h
+++ b/com32/include/syslinux/disk.h
@@ -102,19 +102,6 @@ struct guid {
uint64_t data4;
} __attribute__ ((packed));
-/**
- * This walk-map effectively reverses the little-endian
- * portions of a GPT disk/partition GUID for a string representation.
- * There might be a better header for this...
- */
-static const char guid_le_walk_map[] = {
- 3, -1, -1, -1, 0,
- 5, -1, 0,
- 3, -1, 0,
- 2, 1, 0,
- 1, 1, 1, 1, 1, 1
-};
-
/* A GPT partition */
struct disk_gpt_part_entry {
struct guid type;
@@ -134,5 +121,7 @@ extern int disk_write_sector(const struct disk_info *const diskinfo,
extern int disk_write_verify_sector(const struct disk_info *const diskinfo,
unsigned int lba, const void *buf);
extern void disk_dos_part_dump(const struct disk_dos_part_entry *const part);
+extern void guid_to_str(char *buf, const struct guid *const id);
+extern int str_to_guid(const char *buf, struct guid *const id);
#endif /* _SYSLINUX_DISK_H */