Annotation of embedaddon/iftop/iftop.h, revision 1.1
1.1 ! misho 1: /*
! 2: * iftop.h:
! 3: *
! 4: */
! 5:
! 6: #ifndef __IFTOP_H_ /* include guard */
! 7: #define __IFTOP_H_
! 8:
! 9: #include "config.h"
! 10:
! 11: /* 40 / 2 */
! 12: #define HISTORY_LENGTH 20
! 13: #define RESOLUTION 2
! 14:
! 15: typedef struct {
! 16: long recv[HISTORY_LENGTH];
! 17: long sent[HISTORY_LENGTH];
! 18: double long total_sent;
! 19: double long total_recv;
! 20: int last_write;
! 21: } history_type;
! 22:
! 23: void tick(int print);
! 24:
! 25: void *xmalloc(size_t n);
! 26: void *xcalloc(size_t n, size_t m);
! 27: void *xrealloc(void *w, size_t n);
! 28: char *xstrdup(const char *s);
! 29: void xfree(void *v);
! 30:
! 31: /* ui.c */
! 32: void analyse_data(void);
! 33: void ui_init(void);
! 34:
! 35: /* options.c */
! 36: void options_read(int argc, char **argv);
! 37:
! 38:
! 39: #endif /* __IFTOP_H_ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>