aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-15 23:53:55 +0100
committerFederico Angelilli <code@fedang.net>2023-11-15 23:53:55 +0100
commite4b9aed49eb5464c631960627b63ef703e6e20a4 (patch)
tree7e5c073b600f3b0b927a397d1bd6349d29a207ec /connection.h
parent6ebf2ef9b1c0e08b2b1b3fec18839295014dd688 (diff)
Refine connection event dispatcher
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/connection.h b/connection.h
index 6d0a0cf..1cb0160 100644
--- a/connection.h
+++ b/connection.h
@@ -8,9 +8,10 @@
#include <xcb/xcb_errors.h>
#include <xcb/randr.h>
+typedef struct Connection Connection;
// TODO: Make this opaque
-typedef struct {
+struct Connection {
xcb_connection_t *connection;
xcb_screen_t *screen;
xcb_randr_screen_size_t *screen_size;
@@ -21,7 +22,7 @@ typedef struct {
xcb_errors_context_t *errors;
xcb_ewmh_connection_t ewmh;
GSource *source;
-} Connection;
+};
Connection *connection_create();