aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/disk
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-23 10:20:06 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-23 10:20:06 -0700
commit9f42921795542e310b54c5679083c8251d469617 (patch)
tree9a2a4ba7e4a0fe13f86ee461550931ae0975fc17 /com32/gplinclude/disk
parent80726ee72df67c2c27ee8a58561e08a9cac30e9c (diff)
downloadsyslinux-9f42921795542e310b54c5679083c8251d469617.tar.gz
syslinux-9f42921795542e310b54c5679083c8251d469617.tar.xz
syslinux-9f42921795542e310b54c5679083c8251d469617.zip
gpllib: add bootloader detection
The first two bytes of the hard drive can help identifying the boot code installed in the MBR. Values from the boot_info_script: http://sourceforge.net/projects/bootinfoscript/ Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/gplinclude/disk')
-rw-r--r--com32/gplinclude/disk/bootloaders.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/com32/gplinclude/disk/bootloaders.h b/com32/gplinclude/disk/bootloaders.h
new file mode 100644
index 00000000..23f4b04f
--- /dev/null
+++ b/com32/gplinclude/disk/bootloaders.h
@@ -0,0 +1,14 @@
+/* ----------------------------------------------------------------------- *
+ *
+ * Copyright 2009 Pierre-Alexandre Meyer
+ *
+ * This file is part of Syslinux, and is made available under
+ * the terms of the GNU General Public License version 2.
+ *
+ * ----------------------------------------------------------------------- */
+
+#ifndef __BOOTLOADERS_H_
+#define __BOOTLOADERS_H_
+void get_bootloader_string(const int, void *, const int);
+int get_bootloader_id(const struct driveinfo *);
+#endif /* _BOOTLOADERS_H_ */