aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/ipc-server.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/ipc-server.h')
-rw-r--r--include/sway/ipc-server.h38
1 files changed, 9 insertions, 29 deletions
diff --git a/include/sway/ipc-server.h b/include/sway/ipc-server.h
index 1d199134..c3389fe8 100644
--- a/include/sway/ipc-server.h
+++ b/include/sway/ipc-server.h
@@ -1,41 +1,21 @@
1#ifndef _SWAY_IPC_SERVER_H 1#ifndef _SWAY_IPC_SERVER_H
2#define _SWAY_IPC_SERVER_H 2#define _SWAY_IPC_SERVER_H
3#include <sys/socket.h>
4#include "sway/tree/container.h"
5#include "ipc.h"
3 6
4#include <wlc/wlc.h> 7struct sway_server;
5 8
6#include "container.h" 9void ipc_init(struct sway_server *server);
7#include "config.h"
8#include "ipc.h"
9 10
10void ipc_init(void);
11void ipc_terminate(void); 11void ipc_terminate(void);
12
12struct sockaddr_un *ipc_user_sockaddr(void); 13struct sockaddr_un *ipc_user_sockaddr(void);
13 14
14void ipc_event_workspace(swayc_t *old, swayc_t *new, const char *change); 15void ipc_event_workspace(struct sway_container *old,
16 struct sway_container *new, const char *change);
17void ipc_event_window(struct sway_container *window, const char *change);
15void ipc_event_barconfig_update(struct bar_config *bar); 18void ipc_event_barconfig_update(struct bar_config *bar);
16/**
17 * Send IPC mode event to all listening clients
18 */
19void ipc_event_mode(const char *mode); 19void ipc_event_mode(const char *mode);
20/**
21 * Send IPC window change event
22 */
23void ipc_event_window(swayc_t *window, const char *change);
24/**
25 * Sends an IPC modifier event to all listening clients. The modifier event
26 * includes a key 'change' with the value of state and a key 'modifier' with
27 * the name of that modifier.
28 */
29void ipc_event_modifier(uint32_t modifier, const char *state);
30/**
31 * Send IPC keyboard binding event.
32 */
33void ipc_event_binding_keyboard(struct sway_binding *sb);
34const char *swayc_type_string(enum swayc_types type);
35
36/**
37 * Send pixel data to registered clients.
38 */
39void ipc_get_pixels(wlc_handle output);
40 20
41#endif 21#endif