chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / tty.h
index 9b73c9c1497057053390797157c740540306d304..76f9fbb7b1fc9fe3dc75cbc6505b0b2f6c100dc8 100644 (file)
--- a/src/tty.h
+++ b/src/tty.h
 
 /*
  * $Log$
+ * 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 ***
+ *
  * Revision 1.7  2008/02/14 10:36:18  james
  * *** empty log message ***
  *
@@ -38,6 +50,9 @@
 #ifndef __TTY_H__
 #define __TTY_H__
 
+
+#define SYM_CHAR_RESET         (-1)
+
 #define TTY_SIGNATURE \
        char name[1024]; \
         int blocked; \
        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;
+
+
+#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;