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