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 --- connection.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'connection.h') diff --git a/connection.h b/connection.h index b187b7a..21cbf3f 100644 --- a/connection.h +++ b/connection.h @@ -8,6 +8,9 @@ #include #include +// Forward declaration +typedef struct State State; + typedef struct Connection Connection; // TODO: Make this opaque @@ -22,10 +25,15 @@ struct Connection { xcb_errors_context_t *errors; xcb_ewmh_connection_t ewmh; GSource *source; + GPtrArray *states; }; Connection *connection_create(); +void connection_attach_source(Connection *con); + +void connection_attach_state(Connection *con, State *state); + void connection_destroy(Connection *con); #endif -- cgit v1.2.3