chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / tty.h
index 1da83393eb5989593a5fea0afed1baa41b8668ac..51634edf713fa34a4f8916e6097b2210caee4491 100644 (file)
--- a/src/tty.h
+++ b/src/tty.h
@@ -12,6 +12,9 @@
 
 /*
  * $Log$
+ * Revision 1.3  2008/02/09 15:47:28  james
+ * *** empty log message ***
+ *
  * Revision 1.2  2008/02/07 00:43:27  james
  * *** empty log message ***
  *
 #ifndef __TTY_H__
 #define __TTY_H__
 
-typedef struct
+#define TTY_SIGNATURE \
+       char name[1024]; \
+       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
+
+typedef struct TTY_struct
 {
-  int fd;
+  TTY_SIGNATURE;
 } TTY;
 
 #endif /* __TTY_H__ */