src folder -> source folder; makes merging with dev a bit easier.
This commit is contained in:
29
source/kernel/vfs/VFS.h
Normal file
29
source/kernel/vfs/VFS.h
Normal file
@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
class VirtualFileSystem{
|
||||
public:
|
||||
void Initialize( FS* root);
|
||||
void Open (const char* path);
|
||||
void Read();
|
||||
void Write();
|
||||
|
||||
void Mount(const char* path,FS* FileSystem);
|
||||
void UnMount(FS* FileSystem);
|
||||
|
||||
private:
|
||||
FS* root;
|
||||
|
||||
|
||||
};
|
||||
|
||||
struct FS
|
||||
{
|
||||
const char* name ;
|
||||
int DeviceID;
|
||||
int ManufacturerID;
|
||||
FS* next;
|
||||
char**(Read)();
|
||||
void*(Write)();
|
||||
void*(Open)();
|
||||
};
|
||||
|
Reference in New Issue
Block a user