]> git.sur5r.net Git - i3/i3/blob - include/util.h
Finalize font.c
[i3/i3] / include / util.h
1 /*
2  * vim:ts=8:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  *
6  * (c) 2009 Michael Stapelberg and contributors
7  *
8  * See file LICENSE for license information.
9  *
10  */
11 #include <xcb/xcb.h>
12
13 #include "data.h"
14
15 #ifndef _UTIL_H
16 #define _UTIL_H
17
18 int min(int a, int b);
19 int max(int a, int b);
20 void exit_if_null(void *pointer, char *fmt, ...);
21 void die(char *fmt, ...);
22 void *smalloc(size_t size);
23 char *sstrdup(const char *str);
24 void start_application(const char *command);
25 void check_error(xcb_connection_t *connection, xcb_void_cookie_t cookie, char *err_message);
26 void set_focus(xcb_connection_t *conn, Client *client);
27 void warp_pointer_into(xcb_connection_t *connection, Client *client);
28 void toggle_fullscreen(xcb_connection_t *conn, Client *client);
29
30 #endif