aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-17 15:42:49 +0100
committerFederico Angelilli <code@fedang.net>2023-11-17 15:42:49 +0100
commitab92cac18652f72be12f68b5a96095ba8eb5afdf (patch)
treee52a5f295c7cda59e67a341fa87d25983bd56745 /connection.h
parentf8363e89257e8b0a4ff71accbd7b6be22935274f (diff)
Reorganize project structure
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/connection.h b/connection.h
deleted file mode 100644
index 21cbf3f..0000000
--- a/connection.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifndef COMET_CONNECTION_H
-#define COMET_CONNECTION_H
-
-#include <glib.h>
-#include <xcb/xcb.h>
-#include <xcb/xcb_ewmh.h>
-#include <xcb/xcb_xrm.h>
-#include <xcb/xcb_errors.h>
-#include <xcb/randr.h>
-
-// Forward declaration
-typedef struct State State;
-
-typedef struct Connection Connection;
-
-// TODO: Make this opaque
-struct Connection {
- xcb_connection_t *connection;
- xcb_screen_t *screen;
- xcb_randr_screen_size_t *screen_size;
- double screen_dpi;
- int screen_depth;
- xcb_visualtype_t *visual_type;
- xcb_xrm_database_t *database;
- 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
-
-// vim: ts=4 sw=4 et