From e15ac75ea0dabbe35e097efc81609d1b61fc4e34 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 9 Dec 2003 06:48:10 +0000 Subject: easy-to-use function types for typecasting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4118 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/file.h | 7 +++++++ 1 file changed, 7 insertions(+) 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; typedef unsigned int size_t; #endif +typedef int (*open_func)(const char* pathname, int flags); +typedef ssize_t (*read_func)(int fd, void *buf, size_t count); +typedef int (*creat_func)(const char *pathname, mode_t mode); +typedef ssize_t (*write_func)(int fd, const void *buf, size_t count); +typedef void (*qsort_func)(void *base, size_t nmemb, size_t size, + int(*_compar)(const void *, const void *)); + #if defined(__MINGW32__) && defined(SIMULATOR) extern int open(const char*, int flags, ...); -- cgit v1.2.3