Annotation of embedaddon/iftop/ui_common.h, revision 1.1

1.1     ! misho       1: /*
        !             2:  * ui_common.h
        !             3:  *
        !             4:  *
        !             5:  */
        !             6: 
        !             7: #ifndef __UI_COMMON_H_ /* include guard */
        !             8: #define __UI_COMMON_H_
        !             9: 
        !            10: #include <string.h>
        !            11: #include <stdio.h>
        !            12: 
        !            13: #include "addr_hash.h"
        !            14: #include "serv_hash.h"
        !            15: #include "iftop.h"
        !            16: #include "resolver.h"
        !            17: #include "sorted_list.h"
        !            18: #include "options.h"
        !            19: 
        !            20: #define HISTORY_DIVISIONS 3
        !            21: 
        !            22: #define UNIT_DIVISIONS 4
        !            23: 
        !            24: #define HOSTNAME_LENGTH 256
        !            25: 
        !            26: typedef struct host_pair_line_tag {
        !            27:   addr_pair ap;
        !            28:   double long total_recv;
        !            29:   double long total_sent;
        !            30:   double long recv[HISTORY_DIVISIONS];
        !            31:   double long sent[HISTORY_DIVISIONS];
        !            32: } host_pair_line;
        !            33: 
        !            34: extern options_t options;
        !            35: 
        !            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;
        !            42: 
        !            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, int);
        !            47: 
        !            48: #endif /* __UI_COMMON_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>