summaryrefslogtreecommitdiff
path: root/include/glibtop/sysdeps.h
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-10-25 17:07:16 +0000
committerMartin Baulig <martin@src.gnome.org>1998-10-25 17:07:16 +0000
commit9114af9fdfb000d463740c366293b44dc016da9f (patch)
treeeabe85b7525efb99490d33b9b46acd3e9a92da70 /include/glibtop/sysdeps.h
parent0e57efd4e56d6345a96aeda2bf60a852247cc269 (diff)
downloadlibgtop-9114af9fdfb000d463740c366293b44dc016da9f.tar.gz
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
Diffstat (limited to 'include/glibtop/sysdeps.h')
-rw-r--r--include/glibtop/sysdeps.h6
1 files changed, 4 insertions, 2 deletions
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)