aboutsummaryrefslogtreecommitdiffstats
path: root/include/ipc-client.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-11-27 10:10:29 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-11-27 10:10:29 -0500
commit062c74b7d01a543c69d206a036deff75bc9f7cf1 (patch)
tree6ac5b23e1ca2b471a82c9e2978e0e9d2db1b5bc4 /include/ipc-client.h
parentAdd swaygrab(1) man page (diff)
downloadsway-062c74b7d01a543c69d206a036deff75bc9f7cf1.tar.gz
sway-062c74b7d01a543c69d206a036deff75bc9f7cf1.tar.zst
sway-062c74b7d01a543c69d206a036deff75bc9f7cf1.zip
Add command line to swaygrab
Also modifies IPC client so that we can work with persistent connections.
Diffstat (limited to 'include/ipc-client.h')
-rw-r--r--include/ipc-client.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/ipc-client.h b/include/ipc-client.h
index a56fee43..e6c988c2 100644
--- a/include/ipc-client.h
+++ b/include/ipc-client.h
@@ -3,7 +3,18 @@
3 3
4#include "ipc.h" 4#include "ipc.h"
5 5
6/**
7 * Gets the path to the IPC socket from sway.
8 */
6char *get_socketpath(void); 9char *get_socketpath(void);
7char *ipc_single_command(const char *socket_path, uint32_t type, const char *payload, uint32_t len); 10/**
11 * Opens the sway socket.
12 */
13int ipc_open_socket(const char *socket_path);
14/**
15 * Issues a single IPC command and returns the buffer. len will be updated with
16 * the length of the buffer returned from sway.
17 */
18char *ipc_single_command(int socketfd, uint32_t type, const char *payload, uint32_t *len);
8 19
9#endif 20#endif