chiark / gitweb /
51634edf713fa34a4f8916e6097b2210caee4491
[sympathy.git] / src / tty.h
1 /*
2  * tty.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.3  2008/02/09 15:47:28  james
16  * *** empty log message ***
17  *
18  * Revision 1.2  2008/02/07 00:43:27  james
19  * *** empty log message ***
20  *
21  * Revision 1.1  2008/02/06 20:26:58  james
22  * *** empty log message ***
23  *
24  */
25
26 #ifndef __TTY_H__
27 #define __TTY_H__
28
29 #define TTY_SIGNATURE \
30         char name[1024]; \
31         void (*close)(struct TTY_struct *); \
32         int (*recv)(struct TTY_struct *,void *buf,int len); \
33         int (*xmit)(struct TTY_struct *,void *buf,int len); \
34         int rfd; \
35         int wfd
36
37 typedef struct TTY_struct
38 {
39   TTY_SIGNATURE;
40 } TTY;
41
42 #endif /* __TTY_H__ */