aboutsummaryrefslogtreecommitdiffstats
path: root/src/tty.h
diff options
context:
space:
mode:
authorjames <>2008-02-09 15:47:28 +0000
committerjames <>2008-02-09 15:47:28 +0000
commit5ee4b614cdc64a13aeeb00bf0e0ecbc234e8852d (patch)
treec422688a5e8a11bd177566121473ba1f0000612b /src/tty.h
parenta4101322d71ce2f800d741e98ec8f537c70b663f (diff)
downloadsympathy-5ee4b614cdc64a13aeeb00bf0e0ecbc234e8852d.tar.gz
sympathy-5ee4b614cdc64a13aeeb00bf0e0ecbc234e8852d.tar.bz2
sympathy-5ee4b614cdc64a13aeeb00bf0e0ecbc234e8852d.zip
*** empty log message ***
Diffstat (limited to 'src/tty.h')
-rw-r--r--src/tty.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/tty.h b/src/tty.h
index 1da8339..51634ed 100644
--- 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 ***
*
@@ -23,9 +26,17 @@
#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__ */