diff options
Diffstat (limited to 'include/ipc-client.h')
-rw-r--r-- | include/ipc-client.h | 13 |
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 | */ | ||
6 | char *get_socketpath(void); | 9 | char *get_socketpath(void); |
7 | char *ipc_single_command(const char *socket_path, uint32_t type, const char *payload, uint32_t len); | 10 | /** |
11 | * Opens the sway socket. | ||
12 | */ | ||
13 | int 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 | */ | ||
18 | char *ipc_single_command(int socketfd, uint32_t type, const char *payload, uint32_t *len); | ||
8 | 19 | ||
9 | #endif | 20 | #endif |