diff options
Diffstat (limited to 'connection.h')
| -rw-r--r-- | connection.h | 5 |
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(); |
