/** * \file * * * \brief KFile interface over a debug console. * * * \author Francesco Sacchi * * $WIZ$ module_name = "kfiledebug" * $WIZ$ module_depends = "kfile" */ #ifndef CFG_KFILE_DEBUG #define CFG_KFILE_DEBUG #include /** * Context for KFile over debug console. */ typedef struct KFileDebug { KFile fd; ///< KFile base class } KFileDebug; /** * ID for KFileDebug. */ #define KFT_KFILEDEBUG MAKE_ID('K', 'D', 'B', 'G') /** * Convert + ASSERT from generic KFile to KFileDebug. */ INLINE KFileDebug * KFILEDEBUG_CAST(KFile *fd) { ASSERT(fd->_type == KFT_KFILEDEBUG); return (KFileDebug *)fd; } /** * Initialize KFileMem struct. * * \param km Interface to initialize. */ void kfiledebug_init(KFileDebug *km); #endif /* CFG_KFILE_DEBUG */