Debian Codegraph @

i3bar/include/ipc.h

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