/** * \file * * * \brief KBlock block size reducer * * \author Stefano Fedrigo * * $WIZ$ module_name = "reblock" * $WIZ$ module_depends = "kblock" */ #ifndef REBLOCK_H #define REBLOCK_H #include "kblock.h" typedef struct Reblock { KBlock fd; KBlock *native_fd; } Reblock; #define KBT_REBLOCK MAKE_ID('R', 'E', 'B', 'L') INLINE Reblock *REBLOCK_CAST(KBlock *b) { ASSERT(b->priv.type == KBT_REBLOCK); return (Reblock *)b; } void reblock_init(Reblock *rbl, KBlock *native_fd, size_t native_blk_size); #endif /* REBLOCK_H */