X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftty.h;h=47b3cad02d74c4a55faa5464e1524a88a958080b;hb=11313f344099e326aaf010fb9781b921df3b1967;hp=5286c28134b4a22e4f0c439da82eea88b2d4b197;hpb=cd414751eb1367ac4d0da57630785fed7389d982;p=sympathy.git diff --git a/src/tty.h b/src/tty.h index 5286c28..47b3cad 100644 --- a/src/tty.h +++ b/src/tty.h @@ -12,6 +12,18 @@ /* * $Log$ + * Revision 1.10 2008/02/22 23:39:27 james + * *** empty log message *** + * + * Revision 1.9 2008/02/22 19:12:05 james + * *** empty log message *** + * + * Revision 1.8 2008/02/15 23:52:12 james + * *** empty log message *** + * + * Revision 1.7 2008/02/14 10:36:18 james + * *** empty log message *** + * * Revision 1.6 2008/02/14 10:34:30 james * *** empty log message *** * @@ -35,22 +47,42 @@ #ifndef __TTY_H__ #define __TTY_H__ + +#define SYM_CHAR_RESET (-1) + #define TTY_SIGNATURE \ char name[1024]; \ + int blocked; \ CRT_Pos size; \ void (*close)(struct TTY_struct *); \ int (*recv)(struct TTY_struct *,void *buf,int len); \ int (*xmit)(struct TTY_struct *,void *buf,int len); \ int rfd; \ - int wfd + int wfd; \ + int hanging_up; \ + struct timeval hangup_clock; \ + TTY_Parser parser; + + +typedef struct +{ + int in_dle; + int in_errmark; + + int bitfreq[8]; + int biterrs; +} TTY_Parser; + typedef struct TTY_struct { TTY_SIGNATURE; } TTY; -typedef struct { +typedef struct +{ int lines; + int blocked; struct termios termios; int baud; } TTY_Status;