4 * Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
5 * Copyright 1999,2001,2003 Bernardo Innocenti <bernie@develer.com>
6 * This file is part of DevLib - See devlib/README for information.
9 * \brief Interface to KFile virtual class
13 * \author Bernardo Innocenti <bernie@develer.com>
18 * Revision 1.3 2004/06/06 15:11:38 bernie
21 * Revision 1.2 2004/06/03 11:27:09 bernie
22 * Add dual-license information.
24 * Revision 1.1 2004/05/23 17:27:00 bernie
25 * Import kern/ subdirectory.
36 typedef size_t (*ReadFunc_t) (struct _KFile *fd, char *buf, size_t size);
37 typedef size_t (*WriteFunc_t) (struct _KFile *fd, const char *buf, size_t size);
38 typedef bool (*SeekFunc_t) (struct _KFile *fd, int32_t offset);
39 typedef bool (*CloseFunc_t) (struct _KFile *fd);
40 typedef bool (*OpenFunc_t) (struct _KFile *fd, const char *name, int mode);
44 * Context data for callback functions which operate on
52 /* OpenFunc_t Open; unused */
55 /* NOTE: these must _NOT_ be size_t on 16bit CPUs! */
61 #endif /* KERN_KFILE_H */