diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-09-08 12:20:53 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-09-08 12:20:53 +0000 |
| commit | f64ebb1c1f10e8d15fcc4879d781703c86c5fb8b (patch) | |
| tree | 065072709c699ac6dc3eb640368bd3f4106144e4 /apps/plugin.h | |
| parent | 69b4654ea28049c7e8637d521327ba10ae405f8b (diff) | |
| download | rockbox-f64ebb1c1f10e8d15fcc4879d781703c86c5fb8b.zip rockbox-f64ebb1c1f10e8d15fcc4879d781703c86c5fb8b.tar.gz rockbox-f64ebb1c1f10e8d15fcc4879d781703c86c5fb8b.tar.bz2 rockbox-f64ebb1c1f10e8d15fcc4879d781703c86c5fb8b.tar.xz | |
Sim I/O and threading that runs more like on target. Tweakable if any genuine slowness imitation is required for any one of them. One point of concern is the sim shutdown on an OS other than Linux just because terminating threads in a manner other than having the do it themselves is kind of dirty IMHO.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14639 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index c3e5a5b..2580d43 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -296,10 +296,10 @@ struct plugin_api { /* file */ int (*PREFIX(open))(const char* pathname, int flags); int (*close)(int fd); - ssize_t (*read)(int fd, void* buf, size_t count); + ssize_t (*PREFIX(read))(int fd, void* buf, size_t count); off_t (*PREFIX(lseek))(int fd, off_t offset, int whence); int (*PREFIX(creat))(const char *pathname); - ssize_t (*write)(int fd, const void* buf, size_t count); + ssize_t (*PREFIX(write))(int fd, const void* buf, size_t count); int (*PREFIX(remove))(const char* pathname); int (*PREFIX(rename))(const char* path, const char* newname); int (*PREFIX(ftruncate))(int fd, off_t length); |