From 514dadc66792f0f0c26fd668d23e4b967f8582f5 Mon Sep 17 00:00:00 2001 From: Able Date: Sun, 21 Jul 2024 06:47:25 -0500 Subject: [PATCH] rename --- sysdata/libraries/horizon_api/README.md | 3 +++ .../{windo => horizon_api}/src/element.hb | 0 sysdata/libraries/horizon_api/src/frame.hb | 3 +++ .../{windo => horizon_api}/src/lib.hb | 14 ++++++------- .../{windo => horizon_api}/src/text.hb | 0 sysdata/libraries/windo/README.md | 2 -- sysdata/libraries/windo/src/frame.hb | 0 sysdata/programs/tests/src/main.hb | 20 ++----------------- 8 files changed, 14 insertions(+), 28 deletions(-) create mode 100644 sysdata/libraries/horizon_api/README.md rename sysdata/libraries/{windo => horizon_api}/src/element.hb (100%) create mode 100644 sysdata/libraries/horizon_api/src/frame.hb rename sysdata/libraries/{windo => horizon_api}/src/lib.hb (63%) rename sysdata/libraries/{windo => horizon_api}/src/text.hb (100%) delete mode 100644 sysdata/libraries/windo/README.md delete mode 100644 sysdata/libraries/windo/src/frame.hb diff --git a/sysdata/libraries/horizon_api/README.md b/sysdata/libraries/horizon_api/README.md new file mode 100644 index 0000000..85afad1 --- /dev/null +++ b/sysdata/libraries/horizon_api/README.md @@ -0,0 +1,3 @@ +# Horizon +Horizon is the windowing system for ableOS. +This is the API library to handle it nicely. \ No newline at end of file diff --git a/sysdata/libraries/windo/src/element.hb b/sysdata/libraries/horizon_api/src/element.hb similarity index 100% rename from sysdata/libraries/windo/src/element.hb rename to sysdata/libraries/horizon_api/src/element.hb diff --git a/sysdata/libraries/horizon_api/src/frame.hb b/sysdata/libraries/horizon_api/src/frame.hb new file mode 100644 index 0000000..61d8062 --- /dev/null +++ b/sysdata/libraries/horizon_api/src/frame.hb @@ -0,0 +1,3 @@ +FrameID := struct { + +} \ No newline at end of file diff --git a/sysdata/libraries/windo/src/lib.hb b/sysdata/libraries/horizon_api/src/lib.hb similarity index 63% rename from sysdata/libraries/windo/src/lib.hb rename to sysdata/libraries/horizon_api/src/lib.hb index e0a222c..81aa0fa 100644 --- a/sysdata/libraries/windo/src/lib.hb +++ b/sysdata/libraries/horizon_api/src/lib.hb @@ -1,14 +1,12 @@ -create_window := fn(): WindowID { - return WindowID.(1, 2) -} - WindowID := struct { host_id: int, window_id: int, } -/* -update_ui := fn(window_id: WindowID): bool { - return 1 == 0 +create_window := fn(): WindowID { + return WindowID.(1, 2) } -*/ \ No newline at end of file + +update_ui := fn(window_id: WindowID): void { + return +} \ No newline at end of file diff --git a/sysdata/libraries/windo/src/text.hb b/sysdata/libraries/horizon_api/src/text.hb similarity index 100% rename from sysdata/libraries/windo/src/text.hb rename to sysdata/libraries/horizon_api/src/text.hb diff --git a/sysdata/libraries/windo/README.md b/sysdata/libraries/windo/README.md deleted file mode 100644 index 4fb7d39..0000000 --- a/sysdata/libraries/windo/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Pinnacle -Pinnacle is the windowing system api for ableOS \ No newline at end of file diff --git a/sysdata/libraries/windo/src/frame.hb b/sysdata/libraries/windo/src/frame.hb deleted file mode 100644 index e69de29..0000000 diff --git a/sysdata/programs/tests/src/main.hb b/sysdata/programs/tests/src/main.hb index 3e3d355..05bbc8a 100644 --- a/sysdata/programs/tests/src/main.hb +++ b/sysdata/programs/tests/src/main.hb @@ -1,30 +1,14 @@ stn := @use("../../../libraries/stn/src/lib.hb"); .{log, string, memory, buffer} := stn -windo := @use("../../../libraries/windo/src/lib.hb"); -.{WindowID, create_window} := windo - service_search := fn(): void { a := "\{01}\0" - @eca(void, 3, a, string.length) + @eca(void, 3, 0, a, 2) return } main := fn(): int { - // Create a buffer - num := 2 - buffer_id := buffer.create() - buffer.send_message(buffer_id) - memory_pages := memory.request_page(3) - buffer.receive_message(buffer_id, memory_pages, 4096 * 3) - log.info("abc\0") - memory.release_page(memory_pages, 3) - - window := create_window() - - // todo: abstract this out - port_str := "\0\{70}\0" - a := @eca(u8, 3, 3, port_str, 2) + service_search() return 0 } \ No newline at end of file