From 3b65d725ff54fd389b9930dc3cda5af6a6c028ed Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 30 Aug 2024 15:54:57 -0700 Subject: Initialize X server --- src/scapx.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/scapx.h (limited to 'src/scapx.h') diff --git a/src/scapx.h b/src/scapx.h new file mode 100644 index 0000000..0615e47 --- /dev/null +++ b/src/scapx.h @@ -0,0 +1,17 @@ +#ifndef SCAPX_H +#define SCAPX_H + +#include +#include +#include + +typedef struct { + xcb_connection_t *con; + xcb_screen_t *scr; +} Scr_info; + + +/* Connects to the X Server, and accesses the screen */ +Scr_info *init_XCB_server(); + +#endif -- cgit v1.2.3