X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fio%2Fkblock_posix.h;h=eba541abc6bc32671128d3fab79ae7e62080660e;hb=7c63935d255c8a41b55e98767489dd1a7291cf13;hp=5cbd5434108f41b143c72b01113a4e50fb7da458;hpb=8391dbcd70180ffb6ea99ec894b98cb4280b10c3;p=bertos.git diff --git a/bertos/io/kblock_posix.h b/bertos/io/kblock_posix.h index 5cbd5434..eba541ab 100644 --- a/bertos/io/kblock_posix.h +++ b/bertos/io/kblock_posix.h @@ -42,21 +42,21 @@ #include -typedef struct KBlockFile +typedef struct KBlockPosix { KBlock b; FILE *fp; -} KBlockFile; +} KBlockPosix; -#define KBT_KBLOCKFILE MAKE_ID('K', 'B', 'F', 'L') +#define KBT_KBLOCKPOSIX MAKE_ID('K', 'B', 'F', 'L') -INLINE KBlockFile *KBLOCKFILE_CAST(KBlock *b) +INLINE KBlockPosix *KBLOCKPOSIX_CAST(KBlock *b) { - ASSERT(b->priv.type == KBT_KBLOCKFILE); - return (KBlockFile *)b; + ASSERT(b->priv.type == KBT_KBLOCKPOSIX); + return (KBlockPosix *)b; } -void kblockfile_init(KBlockFile *f, FILE *fp, bool hwbuf, void *buf, size_t block_size, block_idx_t block_count); +void kblockposix_init(KBlockPosix *f, FILE *fp, bool hwbuf, void *buf, size_t block_size, block_idx_t block_count); #endif /* KBLOCK_POSIX_H */