]> git.sur5r.net Git - i3/i3/blob - i3bar/include/ipc.h
Merge branch 'fix-fullscreen-scratch'
[i3/i3] / i3bar / include / ipc.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3bar - an xcb-based status- and ws-bar for i3
5  * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
6  *
7  * ipc.c: Communicating with i3
8  *
9  */
10 #ifndef IPC_H_
11 #define IPC_H_
12
13 #include <stdint.h>
14
15 /*
16  * Initiate a connection to i3.
17  * socket-path must be a valid path to the ipc_socket of i3
18  *
19  */
20 int init_connection(const char *socket_path);
21
22 /*
23  * Destroy the connection to i3.
24  *
25  */
26 void destroy_connection();
27
28 /*
29  * Sends a Message to i3.
30  * type must be a valid I3_IPC_MESSAGE_TYPE (see i3/ipc.h for further information)
31  *
32  */
33 int i3_send_msg(uint32_t type, const char* payload);
34
35 /*
36  * Subscribe to all the i3-events, we need
37  *
38  */
39 void subscribe_events();
40
41 #endif