1
0
Fork 0
forked from koniifer/ableos
This commit is contained in:
Able 2024-07-21 06:47:25 -05:00
parent 9ec3bb1f99
commit 514dadc667
8 changed files with 14 additions and 28 deletions

View file

@ -0,0 +1,3 @@
# Horizon
Horizon is the windowing system for ableOS.
This is the API library to handle it nicely.

View file

@ -0,0 +1,3 @@
FrameID := struct {
}

View file

@ -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)
}
*/
update_ui := fn(window_id: WindowID): void {
return
}

View file

@ -1,2 +0,0 @@
# Pinnacle
Pinnacle is the windowing system api for ableOS

View file

@ -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
}