aboutsummaryrefslogtreecommitdiff
path: root/state.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-17 15:07:14 +0100
committerFederico Angelilli <code@fedang.net>2023-11-17 15:07:14 +0100
commitf8363e89257e8b0a4ff71accbd7b6be22935274f (patch)
tree62e6b17d11b174f6683bf090ed678dddd7a263d4 /state.h
parent41729222431449a81535b28ad27ce2620cb5819b (diff)
Attach state to the event loop
Diffstat (limited to 'state.h')
-rw-r--r--state.h6
1 files changed, 4 insertions, 2 deletions
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);