summaryrefslogtreecommitdiff
path: root/usr.bin/kfgwm/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-23 13:40:05 -0400
committerIan Moffett <ian@osmora.org>2025-06-23 13:40:05 -0400
commit789d714ed76df094bd34f5db0a84060061443de4 (patch)
tree47f23ef85a306ab747a3accb57e889b70763966b /usr.bin/kfgwm/include
parent395fb7ac0dd57f9352a4001b4456095c47a63ef3 (diff)
usr.bin: kfgwm: Allocate new windows with malloc()
As malloc() has been recently introduced into the Hyra libc, we should take advantage of it to allow us to share windows between functions without relying on the stack. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/kfgwm/include')
-rw-r--r--usr.bin/kfgwm/include/kfg/window.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/kfgwm/include/kfg/window.h b/usr.bin/kfgwm/include/kfg/window.h
index 781c2a5..a597969 100644
--- a/usr.bin/kfgwm/include/kfg/window.h
+++ b/usr.bin/kfgwm/include/kfg/window.h
@@ -61,6 +61,7 @@ struct kfg_text {
kfgpos_t y;
};
+struct kfg_window *kfg_win_new(struct kfg_window *parent, kfgpos_t x, kfgpos_t y);
int kfg_win_draw(struct kfg_window *parent, struct kfg_window *wp);
int kfg_win_putstr(struct kfg_window *wp, struct kfg_text *tp);