diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-11-27 10:10:29 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-11-27 10:10:29 -0500 |
commit | 062c74b7d01a543c69d206a036deff75bc9f7cf1 (patch) | |
tree | 6ac5b23e1ca2b471a82c9e2978e0e9d2db1b5bc4 /include | |
parent | 59e97c27884a0dc82eb45f3269368bb684044aa2 (diff) | |
download | sway-062c74b7d01a543c69d206a036deff75bc9f7cf1.tar.xz |
Add command line to swaygrab
Also modifies IPC client so that we can work with persistent
connections.
Diffstat (limited to 'include')
-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 @@ #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 |