ableos_userland/programs/aidl/assets/vfs.idl

27 lines
438 B
Plaintext
Raw Normal View History

2023-05-06 15:57:45 +00:00
Module vfs;
2023-05-04 12:44:49 +00:00
// core provides lots of useful types like String and Byte
2023-05-06 15:57:45 +00:00
Use core.Version;
Use core.Vector;
Use core.String;
2023-05-04 07:27:04 +00:00
2023-05-05 14:15:38 +00:00
Constant VERSION = Make Version {
2023-05-06 15:57:45 +00:00
major: 1,
minor: 0,
patch: 0,
2023-05-05 14:15:38 +00:00
};
2023-05-04 07:27:04 +00:00
2023-05-04 12:44:49 +00:00
Alias Path = String;
2023-05-04 07:27:04 +00:00
Structure File {
2023-05-06 15:57:45 +00:00
name: String,
data: Vector<Byte>,
2023-05-04 07:27:04 +00:00
}
2023-05-04 12:44:49 +00:00
Interface File {
2023-05-06 15:57:45 +00:00
Function create Takes(Path) Returns(Nothing);
2023-05-04 07:27:04 +00:00
2023-05-06 15:57:45 +00:00
Function open Takes(Path) Returns(File);
2023-05-04 07:27:04 +00:00
2023-05-06 15:57:45 +00:00
Function close Takes(File) Returns(Nothing);
2023-05-04 11:19:32 +00:00
}