1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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