From a824fff35c364db5840bd0ea980a54e9d2e6d27a Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sun, 5 Mar 2023 15:29:47 -0600 Subject: [PATCH] cleanup: platform layer specification --- docs/ideas/platform_layer.md | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/docs/ideas/platform_layer.md b/docs/ideas/platform_layer.md index e14cee2c..d52cb029 100644 --- a/docs/ideas/platform_layer.md +++ b/docs/ideas/platform_layer.md @@ -12,8 +12,22 @@ functions does hurt a little bit, because it is not possible to say this document will serve as that "header file" ## Always Expected + +### Types + +### Procedures - `__start() -> void` +### Values +- `Supports_Files :: bool` +- `Supports_Directories :: bool` +- `Supports_Os :: bool` +- `Supports_Processes :: bool` +- `Supports_Time :: bool` +- `Supports_Networking :: bool` +- `Supports_Type_Info :: bool` +- `Supports_Threads :: bool` + ## Files @@ -37,6 +51,7 @@ this document will serve as that "header file" ### Types - `DirectoryData` +### Procedures - `__dir_open(path: str, dir: ^DirectoryData) -> bool` - `__dir_close(dir: DirectoryData) -> void` - `__dir_read(dir: DirectoryData, out_entry: ^os.DirectoryEntry) -> bool` @@ -112,21 +127,3 @@ this document will serve as that "header file" - `__process_destroy(handle: ProcessData) -> void` ### Values - - -## Platform Support Flags - -### Types - -### Procedures - -### Values - -- `Supports_Files :: bool` -- `Supports_Directories :: bool` -- `Supports_Os :: bool` -- `Supports_Processes :: bool` -- `Supports_Time :: bool` -- `Supports_Networking :: bool` -- `Supports_Type_Info :: bool` -- `Supports_Threads :: bool` -- 2.25.1