chiark / gitweb /
*** empty log message ***
[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.7  2008/02/14 10:36:18  james
16  * *** empty log message ***
17  *
18  * Revision 1.6  2008/02/14 10:34:30  james
19  * *** empty log message ***
20  *
21  * Revision 1.5  2008/02/13 09:12:21  james
22  * *** empty log message ***
23  *
24  * Revision 1.4  2008/02/13 01:08:18  james
25  * *** empty log message ***
26  *
27  * Revision 1.3  2008/02/09 15:47:28  james
28  * *** empty log message ***
29  *
30  * Revision 1.2  2008/02/07 00:43:27  james
31  * *** empty log message ***
32  *
33  * Revision 1.1  2008/02/06 20:26:58  james
34  * *** empty log message ***
35  *
36  */
37
38 #ifndef __TTY_H__
39 #define __TTY_H__
40
41 #define TTY_SIGNATURE \
42         char name[1024]; \
43         int blocked; \
44         CRT_Pos size; \
45         void (*close)(struct TTY_struct *); \
46         int (*recv)(struct TTY_struct *,void *buf,int len); \
47         int (*xmit)(struct TTY_struct *,void *buf,int len); \
48         int rfd; \
49         int wfd
50
51 typedef struct TTY_struct
52 {
53   TTY_SIGNATURE;
54 } TTY;
55
56 typedef struct {
57   int lines;
58   int blocked;
59   struct termios termios;
60   int baud;
61 } TTY_Status;
62
63 #endif /* __TTY_H__ */