blob: a2d453a28b0b8e59dd26662d0658a925e455d48f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef _RUNES_SOCKET_H
#define _RUNES_SOCKET_H
#include <sys/un.h>
struct runes_socket {
RunesLoop *loop;
RunesWindowBackendGlobal *wg;
char *name;
int sock;
int client_sock;
};
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_delete(RunesSocket *sock);
#define MAX_SOCKET_PATH_LEN \
(sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path))
#endif
|