#ifndef COMET_CONNECTION_H #define COMET_CONNECTION_H #include #include #include #include #include #include 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; xcb_visualtype_t *visual_type; xcb_depth_t *depth; xcb_xrm_database_t *database; xcb_errors_context_t *errors; xcb_ewmh_connection_t ewmh; GSource *source; }; Connection *connection_create(); void connection_destroy(Connection *con); #endif // vim: ts=4 sw=4 et