From f5b4cd6047d92ba1f932c5f599597c2de8b8c5ae Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Mon, 24 Jul 2023 12:08:18 -0500 Subject: [PATCH] Move structure from termios.c to win32_termios.h https://github.com/Hamlib/Hamlib/issues/1123 --- lib/termios.c | 23 +---------------------- lib/win32termios.h | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/lib/termios.c b/lib/termios.c index 922f358a1..69effb9a7 100644 --- a/lib/termios.c +++ b/lib/termios.c @@ -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); diff --git a/lib/win32termios.h b/lib/win32termios.h index 7834acffe..29013e1d5 100644 --- a/lib/win32termios.h +++ b/lib/win32termios.h @@ -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);