X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-input%2Fi3-input.h;h=fcf9edc3d3138ac24a644cee60adb8f85b9e6bdf;hb=96e1b80371b985d4f67b36e6cb48e61b5fb83995;hp=981e5067cc66bbc13cab7fd1f0aee129fb1d6f36;hpb=c2d04116d46da02152d655a1fe6d8924540d0575;p=i3%2Fi3 diff --git a/i3-input/i3-input.h b/i3-input/i3-input.h index 981e5067..fcf9edc3 100644 --- a/i3-input/i3-input.h +++ b/i3-input/i3-input.h @@ -1,22 +1,14 @@ -#ifndef _I3_INPUT -#define _I3_INPUT +#pragma once #include #define die(...) errx(EXIT_FAILURE, __VA_ARGS__); -#define FREE(pointer) do { \ +#define FREE(pointer) \ + do { \ if (pointer != NULL) { \ - free(pointer); \ - pointer = NULL; \ - } \ -} \ -while (0) + free(pointer); \ + pointer = NULL; \ + } \ + } while (0) extern xcb_window_t root; - -char *convert_ucs_to_utf8(char *input); -char *convert_utf8_to_ucs2(char *input, int *real_strlen); -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); - -#endif