]> git.sur5r.net Git - i3/i3/blob - include/ipc.h
Add docs to include/ipc.h
[i3/i3] / include / ipc.h
1 /*
2  * vim:ts=8:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  *
6  * © 2009 Michael Stapelberg and contributors
7  *
8  * See file LICENSE for license information.
9  *
10  */
11
12 #ifndef _IPC_H
13 #define _IPC_H
14
15 #include <ev.h>
16
17 #include "i3/ipc.h"
18
19 /**
20  * Handler for activity on the listening socket, meaning that a new client
21  * has just connected and we should accept() him. Sets up the event handler
22  * for activity on the new connection and inserts the file descriptor into
23  * the list of clients.
24  *
25  */
26 void ipc_new_client(EV_P_ struct ev_io *w, int revents);
27
28 /**
29  * Creates the UNIX domain socket at the given path, sets it to non-blocking
30  * mode, bind()s and listen()s on it.
31  *
32  */
33 int ipc_create_socket(const char *filename);
34
35 #endif