diff options
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 |