forked from koniifer/ableos
rename
This commit is contained in:
parent
9ec3bb1f99
commit
514dadc667
3
sysdata/libraries/horizon_api/README.md
Normal file
3
sysdata/libraries/horizon_api/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Horizon
|
||||
Horizon is the windowing system for ableOS.
|
||||
This is the API library to handle it nicely.
|
3
sysdata/libraries/horizon_api/src/frame.hb
Normal file
3
sysdata/libraries/horizon_api/src/frame.hb
Normal file
|
@ -0,0 +1,3 @@
|
|||
FrameID := struct {
|
||||
|
||||
}
|
|
@ -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
|
||||
}
|
||||
*/
|
|
@ -1,2 +0,0 @@
|
|||
# Pinnacle
|
||||
Pinnacle is the windowing system api for ableOS
|
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue