kopia lustrzana https://github.com/Hamlib/Hamlib
				
				
				
			Move structure from termios.c to win32_termios.h
https://github.com/Hamlib/Hamlib/issues/1123pull/1347/head
							rodzic
							
								
									557e9a71e5
								
							
						
					
					
						commit
						f5b4cd6047
					
				|  | @ -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); | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Mike Black W9MDB
						Mike Black W9MDB