From f8363e89257e8b0a4ff71accbd7b6be22935274f Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 17 Nov 2023 15:07:14 +0100 Subject: Attach state to the event loop --- state.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'state.h') diff --git a/state.h b/state.h index 5c5528d..696b657 100644 --- a/state.h +++ b/state.h @@ -4,10 +4,12 @@ #include "window.h" #include "draw.h" -typedef struct { +typedef struct State State; + +struct State { Window *win; Drawable *draw; -} State; +}; State *state_create(Window *win, Drawable *draw); -- cgit v1.2.3