From e277d4e094a8294f9541048c0a4a6d0cf9c3f0bc Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 13 Dec 2015 16:04:54 -0500 Subject: Subscribe to workspace change events and redraw --- include/ipc-client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/ipc-client.h b/include/ipc-client.h index e6c988c2..a4cfd87f 100644 --- a/include/ipc-client.h +++ b/include/ipc-client.h @@ -16,5 +16,10 @@ int ipc_open_socket(const char *socket_path); * the length of the buffer returned from sway. */ char *ipc_single_command(int socketfd, uint32_t type, const char *payload, uint32_t *len); +/** + * Receives a single IPC resposne and returns the buffer. len will be updated + * with the length of the buffer returned from sway. + */ +char *ipc_recv_response(int socketfd, uint32_t *len); #endif -- cgit v1.2.3