gpllib: add bootloader detection
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Thu, 27 Aug 2009 04:21:38 +0000 (21:21 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Thu, 27 Aug 2009 04:21:38 +0000 (21:21 -0700)
commitd7076627ee03a2945dc6c6a217a24cc943f2abe2
tree75c4ecdea275b0d2f6a0af04ea213ca513d79570
parentaf27ced68a57f2fd2c2bedb25275e4fe808497be
gpllib: add bootloader detection

Given an (active) partition, look for a bootloader ID.

Syslinux prints a string (SYSLINUX or EXTLINUX) between bytes
3 and 10.

After some random tests, it seems that Windows™98/98SE and Windows™ME
put MSWIN4.1 at the same place. Internet seems to confirm it:

   http://www.geocities.com/thestarman3/asm/mbr/MSWin41BRinHexEd.htm

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/gplinclude/disk/bootloaders.h [new file with mode: 0644]
com32/gpllib/disk/bootloaders.c [new file with mode: 0644]