]> git.sur5r.net Git - i3/i3/blob - i3bar/include/ipc.h
c91960445f1bb8210c1774207571f5347a890853
[i3/i3] / i3bar / include / ipc.h
1 #ifndef IPC_H_
2 #define IPC_H_
3
4 #include <stdint.h>
5
6 /*
7  * Initiate a connection to i3.
8  * socket-path must be a valid path to the ipc_socket of i3
9  *
10  */
11 int init_connection(const char *socket_path);
12
13 /*
14  * Sends a Message to i3.
15  * type must be a valid I3_IPC_MESSAGE_TYPE (see i3/ipc.h for further information)
16  *
17  */
18 int i3_send_msg(uint32_t type, const char* payload);
19
20 /*
21  * Subscribe to all the i3-events, we need
22  *
23  */
24 void subscribe_events();
25
26 #endif