diff --git a/sysdata/libraries/horizon_api/README.md b/sysdata/libraries/horizon_api/README.md new file mode 100644 index 000000000..85afad1de --- /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 000000000..61d80629c --- /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 e0a222c9a..81aa0fa41 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 4fb7d395f..000000000 --- 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 e69de29bb..000000000 diff --git a/sysdata/programs/tests/src/main.hb b/sysdata/programs/tests/src/main.hb index 3e3d3551c..05bbc8a3a 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