6 #define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
7 #define FREE(pointer) do { \
8 if (pointer != NULL) { \
15 extern xcb_window_t root;
17 char *convert_ucs_to_utf8(char *input);
18 char *convert_utf8_to_ucs2(char *input, int *real_strlen);
19 uint32_t get_colorpixel(xcb_connection_t *conn, char *hex);
20 uint32_t get_mod_mask(xcb_connection_t *conn, uint32_t keycode);
21 int connect_ipc(char *socket_path);
22 void ipc_send_message(int sockfd, uint32_t message_size,
23 uint32_t message_type, uint8_t *payload);
24 xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height);
25 int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height);
26 void xcb_change_gc_single(xcb_connection_t *conn, xcb_gcontext_t gc, uint32_t mask, uint32_t value);