diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-02-01 23:08:15 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-02-01 23:08:15 +0000 |
| commit | 67eb154146ea90cd25a383bcdd4a028704ef2218 (patch) | |
| tree | 06b528a996b0ab59b4b3f2b950069c56046a7a10 /apps/codecs.h | |
| parent | 98dc093317b615b2aa8ffe8d140945d75764a813 (diff) | |
| download | rockbox-67eb154146ea90cd25a383bcdd4a028704ef2218.zip rockbox-67eb154146ea90cd25a383bcdd4a028704ef2218.tar.gz rockbox-67eb154146ea90cd25a383bcdd4a028704ef2218.tar.bz2 rockbox-67eb154146ea90cd25a383bcdd4a028704ef2218.tar.xz | |
Removed 'mode' parameter from creat(). It wasn't pure posix anyway, it was ignored on target and mixed into 'oflags' in the simulator. * Simplified io.c a bit by defining a dummy O_BINARY for OSes which don't have that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12179 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs.h')
| -rw-r--r-- | apps/codecs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index cef14c3..730bacb 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -90,12 +90,12 @@ #define CODEC_ENC_MAGIC 0x52454E43 /* RENC */ /* increase this every time the api struct changes */ -#define CODEC_API_VERSION 10 +#define CODEC_API_VERSION 11 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define CODEC_MIN_API_VERSION 10 +#define CODEC_MIN_API_VERSION 11 /* codec return codes */ enum codec_status { @@ -174,7 +174,7 @@ struct codec_api { int (*close)(int fd); ssize_t (*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, mode_t mode); + int (*PREFIX(creat))(const char *pathname); ssize_t (*write)(int fd, const void* buf, size_t count); int (*PREFIX(remove))(const char* pathname); int (*PREFIX(rename))(const char* path, const char* newname); |