2009-09-20 09:44:14 -04:00
|
|
|
#ifndef _I3_INPUT
|
|
|
|
#define _I3_INPUT
|
|
|
|
|
|
|
|
#include <err.h>
|
|
|
|
|
|
|
|
#define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
|
2011-01-12 04:12:24 -05:00
|
|
|
#define FREE(pointer) do { \
|
|
|
|
if (pointer != NULL) { \
|
|
|
|
free(pointer); \
|
|
|
|
pointer = NULL; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
while (0)
|
2009-09-20 09:44:14 -04:00
|
|
|
|
2011-01-27 18:41:53 -05:00
|
|
|
extern xcb_window_t root;
|
|
|
|
|
2009-09-20 09:44:14 -04:00
|
|
|
char *convert_ucs_to_utf8(char *input);
|
2009-09-20 10:54:29 -04:00
|
|
|
char *convert_utf8_to_ucs2(char *input, int *real_strlen);
|
2009-09-20 09:44:14 -04:00
|
|
|
|
|
|
|
#endif
|