ableos_userland/programs/aidl/assets/vfs.idl
2023-05-06 18:57:45 +03:00

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);
}