chiark / gitweb /
serialmgr: Look for things in /usr, not /usr/local
[sympathy.git] / src / tty.h
index 47b3cad02d74c4a55faa5464e1524a88a958080b..40c07f51db831e7cb2875c9fc985b6a5d4bcc943 100644 (file)
--- a/src/tty.h
+++ b/src/tty.h
@@ -1,17 +1,35 @@
-/*
+/* 
  * tty.h:
  *
- * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
+ * Copyright (c) 2008 James McKenzie <sympathy@madingley.org>,
  * All rights reserved.
  *
  */
 
-/*
- * $Id$
+/* 
+ * $Id: tty.h,v 1.16 2008/03/10 11:49:33 james Exp $
  */
 
-/*
- * $Log$
+/* 
+ * $Log: tty.h,v $
+ * Revision 1.16  2008/03/10 11:49:33  james
+ * *** empty log message ***
+ *
+ * Revision 1.15  2008/03/07 12:37:04  james
+ * *** empty log message ***
+ *
+ * Revision 1.14  2008/03/03 06:04:42  james
+ * *** empty log message ***
+ *
+ * Revision 1.13  2008/03/02 10:37:56  james
+ * *** empty log message ***
+ *
+ * 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 ***
  *
        int wfd; \
        int hanging_up; \
        struct timeval hangup_clock; \
-       TTY_Parser parser;
-       
+       int displayed_length;
 
-typedef struct
-{
+
+#define TTY_BITFREQ_LEN        10
+
+typedef struct {
   int in_dle;
   int in_errmark;
 
-  int bitfreq[8];
+  int bitfreq[TTY_BITFREQ_LEN];
   int biterrs;
+
+  struct timeval lasterr;
+  int guessed_baud;
 } TTY_Parser;
 
 
-typedef struct TTY_struct
-{
+typedef struct TTY_struct {
   TTY_SIGNATURE;
 } TTY;
 
-typedef struct
-{
+typedef struct {
   int lines;
   int blocked;
   struct termios termios;