summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 3d6859b..47f226a 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -125,7 +125,11 @@ struct plugin_api {
/* file */
int (*open)(const char* pathname, int flags);
int (*close)(int fd);
+#ifdef SIMULATOR
+ ssize_t (*read)(int fd, void* buf, int count);
+#else
int (*read)(int fd, void* buf, int count);
+#endif
int (*lseek)(int fd, int offset, int whence);
int (*creat)(const char *pathname, int mode);
int (*write)(int fd, void* buf, int count);