From 9114af9fdfb000d463740c366293b44dc016da9f Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sun, 25 Oct 1998 17:07:16 +0000 Subject: Added new feature to get PPP/ISDN support: enum { GLIBTOP_PPP_STATE_UNKNOWN = 0, GLIBTOP_PPP_STATE_HANGUP, GLIBTOP_PPP_STATE_ONLINE }; struct _glibtop_ppp { u_int64_t flags, state, /* GLIBTOP_PPP_STATE */ bytes_in, /* GLIBTOP_PPP_BYTES_IN */ bytes_out; /* GLIBTOP_PPP_BYTES_OUT */ }; Currently only implemented in the FreeBSD port with ISDN via I4B. - Martin --- include/glibtop/sysdeps.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/glibtop/sysdeps.h') diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h index ad94f5d5..1d94bbab 100644 --- a/include/glibtop/sysdeps.h +++ b/include/glibtop/sysdeps.h @@ -46,8 +46,9 @@ __BEGIN_DECLS #define GLIBTOP_SYSDEPS_PROC_MAP 17 #define GLIBTOP_SYSDEPS_MOUNTLIST 18 #define GLIBTOP_SYSDEPS_FSUSAGE 19 +#define GLIBTOP_SYSDEPS_PPP 20 -#define GLIBTOP_MAX_SYSDEPS 20 +#define GLIBTOP_MAX_SYSDEPS 21 #define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1) @@ -79,7 +80,8 @@ struct _glibtop_sysdeps proc_segment, /* glibtop_proc_segment */ proc_map, /* glibtop_proc_map */ mountlist, /* glibtop_mountlist */ - fsusage; /* glibtop_fsusage */ + fsusage, /* glibtop_fsusage */ + ppp; /* glibtop_ppp */ }; #define glibtop_get_sysdeps(sysdeps) glibtop_get_sysdeps_r(glibtop_global_server,sysdeps) -- cgit v1.2.1