diff options
author | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-08-23 10:20:06 -0700 |
---|---|---|
committer | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-08-23 10:20:06 -0700 |
commit | 9f42921795542e310b54c5679083c8251d469617 (patch) | |
tree | 9a2a4ba7e4a0fe13f86ee461550931ae0975fc17 /com32/gplinclude | |
parent | 80726ee72df67c2c27ee8a58561e08a9cac30e9c (diff) | |
download | syslinux-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')
-rw-r--r-- | com32/gplinclude/disk/bootloaders.h | 14 |
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_ */ |