diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-10-26 10:39:14 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-10-26 10:39:14 +0000 |
commit | 1289b92d063f31d7ec3675f0956d86dfcdc63b23 (patch) | |
tree | f3cd9f31c9bbf351c0d3d4cbd5cd935a349b9ca3 /include/glibtop/sysdeps.h | |
parent | bdc4e08454cb6d175f4e6e36e5a63aa46dae09b5 (diff) | |
download | libgtop-1289b92d063f31d7ec3675f0956d86dfcdc63b23.tar.gz |
Added new features to get network load:
typedef struct _glibtop_netload glibtop_netload;
struct _glibtop_netload
{
u_int64_t flags,
mtu, /* GLIBTOP_NETLOAD_MTU */
address, /* GLIBTOP_NETLOAD_ADDRESS */
packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */
packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */
bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */
bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */
errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */
errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */
collisions; /* GLIBTOP_NETLOAD_COLLISIONS */
};
Returns network load of the given interface, it is specified as string
like `isppp' or `ippp0':
extern void glibtop_get_netload_l __P((glibtop *, glibtop_netload *, const char *));
Diffstat (limited to 'include/glibtop/sysdeps.h')
-rw-r--r-- | include/glibtop/sysdeps.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h index 9ec277b9..c0461b7c 100644 --- a/include/glibtop/sysdeps.h +++ b/include/glibtop/sysdeps.h @@ -47,9 +47,10 @@ __BEGIN_DECLS #define GLIBTOP_SYSDEPS_PROC_MAP 18 #define GLIBTOP_SYSDEPS_MOUNTLIST 19 #define GLIBTOP_SYSDEPS_FSUSAGE 20 -#define GLIBTOP_SYSDEPS_PPP 21 +#define GLIBTOP_SYSDEPS_NETLOAD 21 +#define GLIBTOP_SYSDEPS_PPP 22 -#define GLIBTOP_MAX_SYSDEPS 22 +#define GLIBTOP_MAX_SYSDEPS 23 #define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1) @@ -83,6 +84,7 @@ struct _glibtop_sysdeps proc_map, /* glibtop_proc_map */ mountlist, /* glibtop_mountlist */ fsusage, /* glibtop_fsusage */ + netload, /* glibtop_netload */ ppp; /* glibtop_ppp */ }; |