diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-09 06:48:10 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-09 06:48:10 +0000 |
commit | e15ac75ea0dabbe35e097efc81609d1b61fc4e34 (patch) | |
tree | a7987f3128cb66089ce8ebac3033d59eb3d4c991 /firmware/include | |
parent | cf2c577d3dca638f7a3de782f27fe233325aec24 (diff) | |
download | rockbox-e15ac75ea0dabbe35e097efc81609d1b61fc4e34.tar.gz rockbox-e15ac75ea0dabbe35e097efc81609d1b61fc4e34.zip |
easy-to-use function types for typecasting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4118 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/file.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/include/file.h b/firmware/include/file.h index e916d7007d..bb0aad6b73 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h | |||
@@ -68,6 +68,13 @@ typedef unsigned int mode_t; | |||
68 | typedef unsigned int size_t; | 68 | typedef unsigned int size_t; |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | typedef int (*open_func)(const char* pathname, int flags); | ||
72 | typedef ssize_t (*read_func)(int fd, void *buf, size_t count); | ||
73 | typedef int (*creat_func)(const char *pathname, mode_t mode); | ||
74 | typedef ssize_t (*write_func)(int fd, const void *buf, size_t count); | ||
75 | typedef void (*qsort_func)(void *base, size_t nmemb, size_t size, | ||
76 | int(*_compar)(const void *, const void *)); | ||
77 | |||
71 | 78 | ||
72 | #if defined(__MINGW32__) && defined(SIMULATOR) | 79 | #if defined(__MINGW32__) && defined(SIMULATOR) |
73 | extern int open(const char*, int flags, ...); | 80 | extern int open(const char*, int flags, ...); |