Use a per-thread buffer and write(2) for debug traces.
[wine] / include / comm.h
1 #ifndef __WINE_COMM_H
2 #define __WINE_COMM_H
3
4 #include "windef.h"
5
6 #define MAX_PORTS   9
7
8 struct DosDeviceStruct {
9     char *devicename;   /* /dev/cua1 */
10     int fd;
11     int suspended;
12     int unget,xmit;
13     int baudrate;
14     int evtchar;
15     /* events */
16     int commerror, eventmask;
17     /* buffers */
18     char *inbuf,*outbuf;
19     unsigned ibuf_size,ibuf_head,ibuf_tail;
20     unsigned obuf_size,obuf_head,obuf_tail;
21     /* notifications */
22     int wnd, n_read, n_write;
23     HANDLE s_read, s_write;
24 };
25
26 extern void COMM_Init(void);
27
28 #endif  /* __WINE_COMM_H */