From 5fd323fa3c1ac486d973338e575b34e9948bfb69 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 12 Aug 2010 15:53:22 +0000 Subject: [PATCH] Add close sw implementation. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4177 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/io/kblock.c | 5 +++++ bertos/io/kblock.h | 1 + 2 files changed, 6 insertions(+) diff --git a/bertos/io/kblock.c b/bertos/io/kblock.c index 616e7bcd..0f8ac274 100644 --- a/bertos/io/kblock.c +++ b/bertos/io/kblock.c @@ -258,3 +258,8 @@ size_t kblock_swWriteBuf(struct KBlock *b, const void *buf, size_t offset, size_ memcpy((uint8_t *)b->priv.buf + offset, buf, size); return size; } + +int kblock_swClose(UNUSED_ARG(struct KBlock, *b)) +{ + return 0; +} diff --git a/bertos/io/kblock.h b/bertos/io/kblock.h index ea3d14eb..c0d99c0a 100644 --- a/bertos/io/kblock.h +++ b/bertos/io/kblock.h @@ -364,5 +364,6 @@ int kblock_swLoad(struct KBlock *b, block_idx_t index); int kblock_swStore(struct KBlock *b, block_idx_t index); size_t kblock_swReadBuf(struct KBlock *b, void *buf, size_t offset, size_t size); size_t kblock_swWriteBuf(struct KBlock *b, const void *buf, size_t offset, size_t size); +int kblock_swClose(struct KBlock *b); #endif /* IO_KBLOCK_H */ -- 2.25.1