aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-03-06 11:55:57 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-03-06 11:55:57 -0800
commite375515ddc712f1f69ee21337db2a3267caa5d49 (patch)
tree234cecab51fe9bfb341289ce0d0620543f77f047 /com32/include
parentead9bc6ff2fdfffc2f0974bb8de02f54a7671922 (diff)
downloadsyslinux-e375515ddc712f1f69ee21337db2a3267caa5d49.tar.gz
syslinux-e375515ddc712f1f69ee21337db2a3267caa5d49.tar.xz
syslinux-e375515ddc712f1f69ee21337db2a3267caa5d49.zip
Add 32-bit versions of open file/close file
Add 32-bit API calls for open file and close file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/syslinux/pmapi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/com32/include/syslinux/pmapi.h b/com32/include/syslinux/pmapi.h
index 34648e52..5631dcba 100644
--- a/com32/include/syslinux/pmapi.h
+++ b/com32/include/syslinux/pmapi.h
@@ -45,11 +45,19 @@
struct _DIR_;
struct dirent;
+struct com32_filedata {
+ size_t size; /* File size */
+ int blocklg2; /* log2(block size) */
+ uint16_t handle; /* File handle */
+};
+
struct com32_pmapi {
void *(*lmalloc)(size_t);
void (*lfree)(void *);
+ int (*open_file)(const char *, struct com32_filedata *);
size_t (*read_file)(uint16_t *, void *, size_t);
+ void (*close_file)(uint16_t);
struct _DIR_ *(*opendir)(const char *);
struct dirent *(*readdir)(struct _DIR_ *);