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 3d6859b0d3..47f226a84a 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -125,7 +125,11 @@ struct plugin_api {
125 /* file */ 125 /* file */
126 int (*open)(const char* pathname, int flags); 126 int (*open)(const char* pathname, int flags);
127 int (*close)(int fd); 127 int (*close)(int fd);
128#ifdef SIMULATOR
129 ssize_t (*read)(int fd, void* buf, int count);
130#else
128 int (*read)(int fd, void* buf, int count); 131 int (*read)(int fd, void* buf, int count);
132#endif
129 int (*lseek)(int fd, int offset, int whence); 133 int (*lseek)(int fd, int offset, int whence);
130 int (*creat)(const char *pathname, int mode); 134 int (*creat)(const char *pathname, int mode);
131 int (*write)(int fd, void* buf, int count); 135 int (*write)(int fd, void* buf, int count);