This commit is contained in:
Tobias Stoeckmann 2022-12-07 19:46:29 +01:00 committed by GitHub
commit df9b88befb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 131 additions and 86 deletions

View file

@ -15,7 +15,7 @@
* encoded payload string.
*/
struct ipc_response {
uint32_t size;
size_t size;
uint32_t type;
char *payload;
};
@ -32,7 +32,7 @@ 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);
char *ipc_single_command(int socketfd, uint32_t type, const char *payload, size_t *len);
/**
* Receives a single IPC response and returns an ipc_response.
*/