diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-17 15:07:14 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-17 15:07:14 +0100 |
| commit | f8363e89257e8b0a4ff71accbd7b6be22935274f (patch) | |
| tree | 62e6b17d11b174f6683bf090ed678dddd7a263d4 /state.h | |
| parent | 41729222431449a81535b28ad27ce2620cb5819b (diff) | |
Attach state to the event loop
Diffstat (limited to 'state.h')
| -rw-r--r-- | state.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |
