projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename to insert project into the nightly test.
[bertos.git]
/
bertos
/
io
/
kblock_posix.h
diff --git
a/bertos/io/kblock_posix.h
b/bertos/io/kblock_posix.h
index 5cbd5434108f41b143c72b01113a4e50fb7da458..6520f6318ec9f06e21d69836bdb16fe409d7a83d 100644
(file)
--- a/
bertos/io/kblock_posix.h
+++ b/
bertos/io/kblock_posix.h
@@
-32,7
+32,12
@@
*
* \author Francesco Sacchi <batt@develer.com>
*
*
* \author Francesco Sacchi <batt@develer.com>
*
- * \brief KBlock interface
+ * \brief KBlock interface on POSIX file.
+ *
+ * \author Francesco Sacchi <batt@develer.com>
+ *
+ * $WIZ$ module_name = "kfile_posix"
+ * $WIZ$ module_depends = "kblock"
*/
#ifndef KBLOCK_POSIX_H
*/
#ifndef KBLOCK_POSIX_H
@@
-42,21
+47,21
@@
#include <stdio.h>
#include <stdio.h>
-typedef struct KBlock
File
+typedef struct KBlock
Posix
{
KBlock b;
FILE *fp;
{
KBlock b;
FILE *fp;
-} KBlock
File
;
+} KBlock
Posix
;
-#define KBT_KBLOCK
FILE
MAKE_ID('K', 'B', 'F', 'L')
+#define KBT_KBLOCK
POSIX
MAKE_ID('K', 'B', 'F', 'L')
-INLINE KBlock
File *KBLOCKFILE
_CAST(KBlock *b)
+INLINE KBlock
Posix *KBLOCKPOSIX
_CAST(KBlock *b)
{
{
- ASSERT(b->priv.type == KBT_KBLOCK
FILE
);
- return (KBlock
File
*)b;
+ ASSERT(b->priv.type == KBT_KBLOCK
POSIX
);
+ return (KBlock
Posix
*)b;
}
}
-void kblock
file_init(KBlockFile
*f, FILE *fp, bool hwbuf, void *buf, size_t block_size, block_idx_t block_count);
+void kblock
posix_init(KBlockPosix
*f, FILE *fp, bool hwbuf, void *buf, size_t block_size, block_idx_t block_count);
#endif /* KBLOCK_POSIX_H */
#endif /* KBLOCK_POSIX_H */