--- projects/libstatgrab/src/libstatgrab/statgrab.h 2004/01/16 15:54:54 1.22 +++ projects/libstatgrab/src/libstatgrab/statgrab.h 2004/02/13 18:45:43 1.27 @@ -17,6 +17,8 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA + * + * $Id: statgrab.h,v 1.27 2004/02/13 18:45:43 pajs Exp $ */ #include @@ -109,7 +111,20 @@ typedef struct{ time_t systime; }network_stat_t; +typedef enum{ + FULL_DUPLEX, + HALF_DUPLEX, + UNKNOWN_DUPLEX +}statgrab_duplex; + typedef struct{ + char *interface_name; + int speed; /* In megabits/sec */ + statgrab_duplex dup; + int up; +}network_iface_stat_t; + +typedef struct{ long long pages_pagein; long long pages_pageout; time_t systime; @@ -137,6 +152,8 @@ process_stat_t *get_process_stats(); network_stat_t *get_network_stats(int *entries); network_stat_t *get_network_stats_diff(int *entries); + +network_iface_stat_t *get_network_iface_stats(int *entries); page_stat_t *get_page_stats(); page_stat_t *get_page_stats_diff();