X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Ftty.h;h=91b14c664b491711d5eb3305b34dc9afae9ab350;hb=940f48e7089157e6ffae29936226ade7b1176b02;hp=1da83393eb5989593a5fea0afed1baa41b8668ac;hpb=c41d259a13d31aa9a1698ef5f22e06d2694ba85e;p=sympathy.git diff --git a/src/tty.h b/src/tty.h index 1da8339..91b14c6 100644 --- a/src/tty.h +++ b/src/tty.h @@ -12,6 +12,15 @@ /* * $Log$ + * Revision 1.5 2008/02/13 09:12:21 james + * *** empty log message *** + * + * Revision 1.4 2008/02/13 01:08:18 james + * *** empty log message *** + * + * 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 +32,18 @@ #ifndef __TTY_H__ #define __TTY_H__ -typedef struct +#define TTY_SIGNATURE \ + char name[1024]; \ + CRT_Pos size; \ + 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__ */