diff options
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/socket.h b/src/socket.h index e0c5955..a2d453a 100644 --- a/src/socket.h +++ b/src/socket.h @@ -5,15 +5,16 @@ struct runes_socket { RunesLoop *loop; + RunesWindowBackendGlobal *wg; char *name; int sock; int client_sock; }; -void runes_socket_init(RunesSocket *sock, RunesLoop *loop); +RunesSocket *runes_socket_new(RunesLoop *loop, RunesWindowBackendGlobal *wg); void runes_socket_init_loop(RunesSocket *sock, RunesLoop *loop); void runes_socket_send_client_message(int argc, char **argv); -void runes_socket_cleanup(RunesSocket *sock); +void runes_socket_delete(RunesSocket *sock); #define MAX_SOCKET_PATH_LEN \ (sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path)) |