X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-input%2Fi3-input.h;h=f494cbd56704c260c4806e486a17fd301948c4b8;hb=bbd1b1604359087055a9a5066cbeab32b200b418;hp=6c982bc529508e76e54eec8222c7986ed80ed31b;hpb=50739cdd58184d71c12f9643af3557ce9a3aae8e;p=i3%2Fi3 diff --git a/i3-input/i3-input.h b/i3-input/i3-input.h index 6c982bc5..f494cbd5 100644 --- a/i3-input/i3-input.h +++ b/i3-input/i3-input.h @@ -4,16 +4,14 @@ #include #define die(...) errx(EXIT_FAILURE, __VA_ARGS__); +#define FREE(pointer) do { \ + if (pointer != NULL) { \ + free(pointer); \ + pointer = NULL; \ + } \ +} \ +while (0) -char *convert_ucs_to_utf8(char *input); -char *convert_utf8_to_ucs2(char *input, int *real_strlen); -uint32_t get_colorpixel(xcb_connection_t *conn, char *hex); -uint32_t get_mode_switch_mask(xcb_connection_t *conn); -int connect_ipc(char *socket_path); -void ipc_send_message(int sockfd, uint32_t message_size, - uint32_t message_type, uint8_t *payload); -xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height); -int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height); -void xcb_change_gc_single(xcb_connection_t *conn, xcb_gcontext_t gc, uint32_t mask, uint32_t value); +extern xcb_window_t root; #endif