aboutsummaryrefslogtreecommitdiff
path: root/include/ipc-client.h
diff options
context:
space:
mode:
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 @@
#include "ipc.h"
+/**
+ * Gets the path to the IPC socket from sway.
+ */
char *get_socketpath(void);
-char *ipc_single_command(const char *socket_path, uint32_t type, const char *payload, uint32_t len);
+/**
+ * Opens the sway socket.
+ */
+int ipc_open_socket(const char *socket_path);
+/**
+ * Issues a single IPC command and returns the buffer. len will be updated with
+ * the length of the buffer returned from sway.
+ */
+char *ipc_single_command(int socketfd, uint32_t type, const char *payload, uint32_t *len);
#endif