2 * vim:ts=4:sw=4:expandtab
4 * i3bar - an xcb-based status- and ws-bar for i3
5 * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
7 * ipc.c: Communicating with i3
16 * Initiate a connection to i3.
17 * socket-path must be a valid path to the ipc_socket of i3
20 int init_connection(const char *socket_path);
23 * Destroy the connection to i3.
26 void destroy_connection();
29 * Sends a Message to i3.
30 * type must be a valid I3_IPC_MESSAGE_TYPE (see i3/ipc.h for further information)
33 int i3_send_msg(uint32_t type, const char* payload);
36 * Subscribe to all the i3-events, we need
39 void subscribe_events();