diff options
author | Alexis211 <alexis211@gmail.com> | 2009-09-13 13:09:10 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-09-13 13:09:10 +0200 |
commit | b808b613a5c7e0b6c6c45b28f7f0169dc13afaa2 (patch) | |
tree | 99d656cfc6425f3d4720a8d1bd3b7a5717d0a558 /Source/Kernel/VFS/FileNode.proto.h | |
parent | bdf19d4a139005390670380cb2c811febdfa5747 (diff) | |
download | Melon-b808b613a5c7e0b6c6c45b28f7f0169dc13afaa2.tar.gz Melon-b808b613a5c7e0b6c6c45b28f7f0169dc13afaa2.zip |
Created some files
Diffstat (limited to 'Source/Kernel/VFS/FileNode.proto.h')
-rw-r--r-- | Source/Kernel/VFS/FileNode.proto.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/Kernel/VFS/FileNode.proto.h b/Source/Kernel/VFS/FileNode.proto.h new file mode 100644 index 0000000..b02c277 --- /dev/null +++ b/Source/Kernel/VFS/FileNode.proto.h @@ -0,0 +1,24 @@ +#ifndef DEF_FILENODE_PROTO_H +#define DEF_FILENODE_PROTO_H + +#include <VFS/FSNode.proto.h> + +class FileNode : public virtual FSNode { + protected: + DirectoryNode() {} + + virtual bool FSRead(u64int position, u32int max_length, u8int *data) = 0; + virtual bool FSWrite(u64int position, u32int length, u8int *data) = 0; + + public: + bool read(u64int position, u32int max_length, u8int *data) { + return FSRead(position, max_length, data); + } + + bool write(u64int position, u32int length, u8int *data) { + return FSWrite(position, length, data); + } + +}; + +#endif |