Remove unused header files
Changes:
    * Remove patty/ax25/defs.h
    * Remove patty/ax25/stats.h
    * Add forward declaration for patty_ax25 to top of patty/ax25.h
    * Rename patty_ax25_stats to patty_ax25_if_stats, move into
      patty/ax25/if.h
			
			
This commit is contained in:
		
							parent
							
								
									d44889121e
								
							
						
					
					
						commit
						112fca0df4
					
				
					 4 changed files with 13 additions and 33 deletions
				
			
		|  | @ -8,7 +8,8 @@ | ||||||
| #include <patty/list.h> | #include <patty/list.h> | ||||||
| #include <patty/dict.h> | #include <patty/dict.h> | ||||||
| 
 | 
 | ||||||
| #include <patty/ax25/defs.h> | typedef struct _patty_ax25 patty_ax25; | ||||||
|  | 
 | ||||||
| #include <patty/ax25/macros.h> | #include <patty/ax25/macros.h> | ||||||
| #include <patty/ax25/proto.h> | #include <patty/ax25/proto.h> | ||||||
| #include <patty/ax25/address.h> | #include <patty/ax25/address.h> | ||||||
|  | @ -68,7 +69,7 @@ typedef struct _patty_ax25_event { | ||||||
|          patty_ax25_sock *     sock; |          patty_ax25_sock *     sock; | ||||||
| } patty_ax25_event; | } patty_ax25_event; | ||||||
| 
 | 
 | ||||||
| struct _patty_ax25 { | typedef struct _patty_ax25 { | ||||||
|     patty_list * ifaces; |     patty_list * ifaces; | ||||||
|     patty_list * socks; |     patty_list * socks; | ||||||
| 
 | 
 | ||||||
|  | @ -83,7 +84,7 @@ struct _patty_ax25 { | ||||||
|     patty_dict * fd_lookup; |     patty_dict * fd_lookup; | ||||||
|     int          fd; |     int          fd; | ||||||
|     int          current; |     int          current; | ||||||
| }; | } patty_ax25; | ||||||
| 
 | 
 | ||||||
| int patty_ax25_init(patty_ax25 *ax25); | int patty_ax25_init(patty_ax25 *ax25); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,17 +0,0 @@ | ||||||
| #ifndef _PATTY_AX25_DEFS_H |  | ||||||
| #define _PATTY_AX25_DEFS_H |  | ||||||
| 
 |  | ||||||
| #include <sys/types.h> |  | ||||||
| 
 |  | ||||||
| #include <patty/list.h> |  | ||||||
| #include <patty/dict.h> |  | ||||||
| 
 |  | ||||||
| typedef struct _patty_ax25_stats { |  | ||||||
|     size_t rx; |  | ||||||
|     size_t tx; |  | ||||||
|     size_t dropped; |  | ||||||
| } patty_ax25_stats; |  | ||||||
| 
 |  | ||||||
| typedef struct _patty_ax25 patty_ax25; |  | ||||||
| 
 |  | ||||||
| #endif /* _PATTY_AX25_DEFS_H */ |  | ||||||
|  | @ -20,9 +20,17 @@ enum patty_ax25_if_type { | ||||||
|     PATTY_AX25_IF_SOFT_TNC      = 0x10 |     PATTY_AX25_IF_SOFT_TNC      = 0x10 | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | typedef struct _patty_ax25_if_stats { | ||||||
|  |     size_t rx_frames, | ||||||
|  |            tx_frames, | ||||||
|  |            rx_bytes, | ||||||
|  |            tx_bytes, | ||||||
|  |            dropped; | ||||||
|  | } patty_ax25_if_stats; | ||||||
|  | 
 | ||||||
| typedef struct _patty_ax25_if { | typedef struct _patty_ax25_if { | ||||||
|     enum patty_ax25_if_type type; |     enum patty_ax25_if_type type; | ||||||
|     patty_ax25_stats        stats; |     patty_ax25_if_stats     stats; | ||||||
| 
 | 
 | ||||||
|     char name[8]; |     char name[8]; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,12 +0,0 @@ | ||||||
| #ifndef _PATTY_AX25_STATS_H |  | ||||||
| #define _PATTY_AX25_STATS_H |  | ||||||
| 
 |  | ||||||
| #include <sys/types.h> |  | ||||||
| 
 |  | ||||||
| typedef struct _patty_ax25_stats { |  | ||||||
|     size_t frame_tx; |  | ||||||
|     size_t frame_rx; |  | ||||||
|     size_t frame_drop; |  | ||||||
| } patty_ax25_stats; |  | ||||||
| 
 |  | ||||||
| #endif /* _PATTY_AX25_STATS_H */ |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue