mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
ipc-client: add functions for send without receive
This commit is contained in:
parent
68da76b745
commit
227d9b82e4
2 changed files with 14 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue