/** * \file * * * \brief KFile interface implementation in Posix systems. * * \author Luca Ottaviano */ #ifndef KFILE_POSIX_H #define KFILE_POSIX_H #include #include typedef struct KFilePosix { KFile fd; FILE *fp; } KFilePosix; #define KFT_KFILEPOSIX MAKE_ID('K', 'F', 'T', 'P') INLINE KFilePosix *KFILEPOSIX_CAST(KFile *fd) { ASSERT(fd->_type == KFT_KFILEPOSIX); return (KFilePosix *)fd; } FILE *kfile_posix_init(KFilePosix *file, const char *filename, const char *mode); #endif /* KFILE_POSIX_H */