aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/disk
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-04-19 21:06:39 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-04-19 21:06:39 -0700
commit8f67b34b0b99fbae6264dc0a34331d557e674b86 (patch)
tree5c8edca5968b463f0549f8fec327a526657ba876 /com32/gplinclude/disk
parentd48c9f289d527656480199e844103a9907ebc4c5 (diff)
downloadsyslinux-8f67b34b0b99fbae6264dc0a34331d557e674b86.tar.gz
syslinux-8f67b34b0b99fbae6264dc0a34331d557e674b86.tar.xz
syslinux-8f67b34b0b99fbae6264dc0a34331d557e674b86.zip
gpllib: Add read_mbr helper (disk)
Impact: disk API extension read_mbr takes a drive number and returns a pointer to a malloced buffer containing its mbr. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/gplinclude/disk')
-rw-r--r--com32/gplinclude/disk/read.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/com32/gplinclude/disk/read.h b/com32/gplinclude/disk/read.h
index f8000a41..79c79524 100644
--- a/com32/gplinclude/disk/read.h
+++ b/com32/gplinclude/disk/read.h
@@ -1,5 +1,6 @@
#ifndef _READ_H_
#define _READ_H_
+void *read_mbr(int drive);
void *dev_read(int drive, unsigned int lba, int sectors);
void *read_sectors(struct driveinfo* drive_info, const unsigned int lba,
const int sectors);