4 * Copyright 2004 Develer S.r.l. (http://www.develer.com/)
5 * Copyright 1999, 2000, 2001, 2003 Bernardo Innocenti <bernie@develer.com>
6 * This file is part of DevLib - See README.devlib for information.
9 * \brief Virtual KFile I/O interface.
12 * \author Bernardo Innocenti <bernie@develer.com>
17 *#* Revision 1.5 2005/11/04 16:20:02 bernie
18 *#* Fix reference to README.devlib in header.
20 *#* Revision 1.4 2005/04/11 19:10:28 bernie
21 *#* Include top-level headers from cfg/ subdir.
23 *#* Revision 1.3 2004/12/31 16:43:23 bernie
24 *#* Move seek function last in VT.
26 *#* Revision 1.2 2004/08/25 14:12:09 rasky
27 *#* Aggiornato il comment block dei log RCS
29 *#* Revision 1.1 2004/08/04 02:40:25 bernie
30 *#* Add virtual file I/O interface.
36 #include <cfg/compiler.h>
41 typedef size_t (*ReadFunc_t) (struct _KFile *fd, char *buf, size_t size);
42 typedef size_t (*WriteFunc_t) (struct _KFile *fd, const char *buf, size_t size);
43 typedef bool (*SeekFunc_t) (struct _KFile *fd, int32_t offset);
44 typedef bool (*OpenFunc_t) (struct _KFile *fd, const char *name, int mode);
45 typedef bool (*CloseFunc_t) (struct _KFile *fd);
48 /* Context data for callback functions which operate on
59 /* NOTE: these must _NOT_ be size_t on 16bit CPUs! */
64 #endif /* MWARE_KFILE_H */