ipc-client: add functions for send without receive

This commit is contained in:
progandy 2016-01-08 18:29:06 +01:00
parent 68da76b745
commit 227d9b82e4
2 changed files with 14 additions and 3 deletions

View file

@ -21,6 +21,11 @@ char *get_socketpath(void);
* Opens the sway socket.
*/
int ipc_open_socket(const char *socket_path);
/**
* Issues a single IPC command without waiting for a response.
* Useful if events are sent on the same socket.
*/
void ipc_send_command(int socketfd, uint32_t type, const char *payload, uint32_t len);
/**
* Issues a single IPC command and returns the buffer. len will be updated with
* the length of the buffer returned from sway.