Move structure from termios.c to win32_termios.h

https://github.com/Hamlib/Hamlib/issues/1123
pull/1347/head
Mike Black W9MDB 2023-07-24 12:08:18 -05:00
rodzic 557e9a71e5
commit f5b4cd6047
2 zmienionych plików z 24 dodań i 22 usunięć

Wyświetl plik

@ -65,28 +65,7 @@ int my_errno;
#if 0
extern int errno;
#endif
struct termios_list
{
char filename[512];
int my_errno;
int interrupt;
int event_flag;
int tx_happened;
unsigned long *hComm;
struct termios *ttyset;
struct serial_struct *sstruct;
/* for DTR DSR */
unsigned char MSR;
struct async_struct *astruct;
struct serial_icounter_struct *sis;
int open_flags;
OVERLAPPED rol;
OVERLAPPED wol;
OVERLAPPED sol;
int fd;
struct termios_list *next;
struct termios_list *prev;
};
struct termios_list *first_tl = NULL;
static struct termios_list *find_port(int);

Wyświetl plik

@ -119,6 +119,29 @@ struct serial_icounter_struct {
int reserved[9]; /* unused */
};
struct termios_list
{
char filename[512];
int my_errno;
int interrupt;
int event_flag;
int tx_happened;
unsigned long *hComm;
struct termios *ttyset;
struct serial_struct *sstruct;
/* for DTR DSR */
unsigned char MSR;
struct async_struct *astruct;
struct serial_icounter_struct *sis;
int open_flags;
OVERLAPPED rol;
OVERLAPPED wol;
OVERLAPPED sol;
int fd;
struct termios_list *next;
struct termios_list *prev;
};
int win32_serial_test( char * );
int win32_serial_open(const char *File, int flags, ... );
int win32_serial_close(int fd);