chiark / gitweb /
*** empty log message ***
[sympathy.git] / apps / clients.h
1 /*
2  * clients.h:
3  *
4  * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
5  * All rights reserved.
6  *
7  */
8
9 /*
10  * $Id$
11  */
12
13 /*
14  * $Log$
15  * Revision 1.1  2008/02/13 18:05:06  james
16  * *** empty log message ***
17  *
18  */
19
20 #ifndef __CLIENTS_H__
21 #define __CLIENTS_H__
22
23 typedef struct Client_struct {
24         struct Client_struct *next;
25
26         Socket *s;
27         int dead;
28 } Client;
29
30 typedef struct {
31         Client *head;
32         int n;
33 } Clients;
34
35
36 extern Clients *clients_new(void);
37 extern void clients_pre_select (Clients *, fd_set *, fd_set *);
38 extern void clients_post_select(Clients *,Context *, fd_set *, fd_set *);
39 extern Client *clients_new_client(Clients *,Socket *,Context *);
40 extern void clients_shutdown(Clients *);
41 extern void clients_output (Clients *, void *, int);
42
43 #endif /* __CLIENTS_H__ */