aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/ipc-server.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-09-01 08:18:37 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-09-01 08:18:37 -0400
commit416417a54c5875abcdc257b6ad10ff086c35eefc (patch)
tree00f20884a05d05e620a4a24bba8595557cd41405 /include/sway/ipc-server.h
parentMerge pull request #876 from zandrmartin/patch-1 (diff)
downloadsway-416417a54c5875abcdc257b6ad10ff086c35eefc.tar.gz
sway-416417a54c5875abcdc257b6ad10ff086c35eefc.tar.zst
sway-416417a54c5875abcdc257b6ad10ff086c35eefc.zip
Reorganize includes
Diffstat (limited to 'include/sway/ipc-server.h')
-rw-r--r--include/sway/ipc-server.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/sway/ipc-server.h b/include/sway/ipc-server.h
new file mode 100644
index 00000000..1d199134
--- /dev/null
+++ b/include/sway/ipc-server.h
@@ -0,0 +1,41 @@
1#ifndef _SWAY_IPC_SERVER_H
2#define _SWAY_IPC_SERVER_H
3
4#include <wlc/wlc.h>
5
6#include "container.h"
7#include "config.h"
8#include "ipc.h"
9
10void ipc_init(void);
11void ipc_terminate(void);
12struct sockaddr_un *ipc_user_sockaddr(void);
13
14void ipc_event_workspace(swayc_t *old, swayc_t *new, const char *change);
15void 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);
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
41#endif