]> git.sur5r.net Git - i3/i3/blob - i3-input/i3-input.h
Add initial version of i3-input, an interactive tool for sending IPC commands
[i3/i3] / i3-input / i3-input.h
1 #ifndef _I3_INPUT
2 #define _I3_INPUT
3
4 #include <err.h>
5
6 #define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
7
8 char *convert_ucs_to_utf8(char *input);
9 uint32_t get_colorpixel(xcb_connection_t *conn, char *hex);
10 uint32_t get_mode_switch_mask(xcb_connection_t *conn);
11 int connect_ipc(char *socket_path);
12 void ipc_send_message(int sockfd, uint32_t message_size,
13                       uint32_t message_type, uint8_t *payload);
14 xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height);
15 int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height);
16 void xcb_change_gc_single(xcb_connection_t *conn, xcb_gcontext_t gc, uint32_t mask, uint32_t value);
17
18 #endif