7 #ifndef __UI_COMMON_H_ /* include guard */
13 #include "addr_hash.h"
14 #include "serv_hash.h"
17 #include "sorted_list.h"
20 #define HISTORY_DIVISIONS 3
22 #define UNIT_DIVISIONS 4
24 #define HOSTNAME_LENGTH 256
26 typedef struct host_pair_line_tag {
28 double long total_recv;
29 double long total_sent;
30 double long recv[HISTORY_DIVISIONS];
31 double long sent[HISTORY_DIVISIONS];
34 extern options_t options;
36 sorted_list_type screen_list;
37 host_pair_line totals;
38 int peaksent, peakrecv, peaktotal;
39 extern history_type history_totals;
40 hash_type* screen_hash;
41 hash_type* service_hash;
43 void analyse_data(void);
44 void screen_list_init(void);
45 void sprint_host(char * line, int af, struct in6_addr* addr, unsigned int port, unsigned int protocol, int L, int unspecified_as_star);
46 void readable_size(float, char*, int, int, option_bw_unit_t);
48 #endif /* __UI_COMMON_H_ */