diff options
author | ben <ben.nagy@arachnida.blog> | 2024-08-30 15:54:57 -0700 |
---|---|---|
committer | ben <ben.nagy@arachnida.blog> | 2024-08-30 15:54:57 -0700 |
commit | 3b65d725ff54fd389b9930dc3cda5af6a6c028ed (patch) | |
tree | e4dda7d3debd0b448cf952eababbd95ca77bed77 /src/scapx.h | |
parent | 82c33d0fc4dac5d9f0b1aa1191f7f5f455822060 (diff) |
Initialize X server
Diffstat (limited to 'src/scapx.h')
-rw-r--r-- | src/scapx.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> +#include <xcb/xcb.h> + +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 |