X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftty.h;h=d91500e024ee3b0b685094cdea60a0696ba43f0d;hb=0811309bdec5ebb179d6056005f94c585b8fc8fd;hp=2ad10038c2da971f4afe2c6f97866eaff9c186c7;hpb=ded21942fccb9fde8c3264c8f9a3dcdbc6ae1c38;p=sympathy.git diff --git a/src/tty.h b/src/tty.h index 2ad1003..d91500e 100644 --- a/src/tty.h +++ b/src/tty.h @@ -12,6 +12,18 @@ /* * $Log$ + * Revision 1.12 2008/02/28 16:57:52 james + * *** empty log message *** + * + * Revision 1.11 2008/02/23 11:48:37 james + * *** empty log message *** + * + * 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 *** * @@ -41,6 +53,9 @@ #ifndef __TTY_H__ #define __TTY_H__ + +#define SYM_CHAR_RESET (-1) + #define TTY_SIGNATURE \ char name[1024]; \ int blocked; \ @@ -51,14 +66,32 @@ int rfd; \ int wfd; \ int hanging_up; \ - struct timeval hangup_clock + struct timeval hangup_clock; \ + int displayed_length; + + +#define TTY_BITFREQ_LEN 10 + +typedef struct +{ + int in_dle; + int in_errmark; + + int bitfreq[TTY_BITFREQ_LEN]; + int biterrs; + + struct timeval lasterr; + int guessed_baud; +} TTY_Parser; + typedef struct TTY_struct { TTY_SIGNATURE; } TTY; -typedef struct { +typedef struct +{ int lines; int blocked; struct termios termios;