blob: fc2e8015366d6acf5dd145689f017c2c2c3645bc (
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_DAEMON_H
#define _RUNES_DAEMON_H
#include <sys/un.h>
struct runes_daemon {
RunesLoop *loop;
RunesWindowBackendGlobal *wg;
char *sock_name;
int sock;
int client_sock;
};
RunesDaemon *runes_daemon_new(RunesLoop *loop, RunesWindowBackendGlobal *wg);
void runes_daemon_init_loop(RunesDaemon *daemon, RunesLoop *loop);
void runes_daemon_send_client_message(int argc, char **argv);
void runes_daemon_delete(RunesDaemon *daemon);
#define MAX_SOCKET_PATH_LEN \
(sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path))
#endif
|