mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:57:19 +00:00
a1c45a52b9
win16 routines use port indices instead of UNIX fds (this should make some Visual Basic stuff and similar garbage start working), moved some stuff around (win16 routines at top of file, win32 routines at bottom), made a couple of win32 routines use win32 handles, and added a few hints as to how to implement asynchronous buffers, based on which EnableCommNotification can eventually be implemented.
24 lines
423 B
C
24 lines
423 B
C
#ifndef __WINE_COMM_H
|
|
#define __WINE_COMM_H
|
|
|
|
#define MAX_PORTS 9
|
|
|
|
struct DosDeviceStruct {
|
|
char *devicename; /* /dev/cua1 */
|
|
int fd;
|
|
int suspended;
|
|
int unget;
|
|
int unget_byte;
|
|
int baudrate;
|
|
/* events */
|
|
int commerror, eventmask;
|
|
/* buffers */
|
|
char *inbuf,*outbuf;
|
|
/* notifications */
|
|
int wnd, n_read, n_write;
|
|
};
|
|
|
|
extern void COMM_Init(void);
|
|
|
|
#endif /* __WINE_COMM_H */
|