forked from AbleOS/ableos_userland
27 lines
438 B
Plaintext
27 lines
438 B
Plaintext
Module vfs;
|
|
// core provides lots of useful types like String and Byte
|
|
Use core.Version;
|
|
Use core.Vector;
|
|
Use core.String;
|
|
|
|
Constant VERSION = Make Version {
|
|
major: 1,
|
|
minor: 0,
|
|
patch: 0,
|
|
};
|
|
|
|
Alias Path = String;
|
|
|
|
Structure File {
|
|
name: String,
|
|
data: Vector<Byte>,
|
|
}
|
|
|
|
Interface File {
|
|
Function create Takes(Path) Returns(Nothing);
|
|
|
|
Function open Takes(Path) Returns(File);
|
|
|
|
Function close Takes(File) Returns(Nothing);
|
|
}
|