summaryrefslogtreecommitdiff
path: root/src/daemon/slave.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-11-28 18:17:21 +0000
committerMartin Baulig <martin@src.gnome.org>1999-11-28 18:17:21 +0000
commit4a01752467afdca9c80dee0084192433f7eefb5b (patch)
treef4f742dae97675ef410e539d71757fdc799378f0 /src/daemon/slave.c
parent53f9d03e30425a6d9f709d6db1a9c9e15eb86306 (diff)
downloadlibgtop-4a01752467afdca9c80dee0084192433f7eefb5b.tar.gz
Split netload into netload and netinfo.
1999-11-28 Martin Baulig <martin@home-of-linux.org> Split netload into netload and netinfo. * include/glibtop/netinfo.h: New file. * include/glibtop/netload.h (glibtop_netload): Moved `if_flags', `mtu', `subnet' and `address' into the new `glibtop_netinfo'. * include/glibtop/sysdeps.h (GLIBTOP_SYSDEPS_NETINFO): Added. (glibtop_sysdeps): Added `netinfo. * include/glibtop/union.h (glibtop_union): Added `netinfo. * include/glibtop/command.h (GLIBTOP_CMND_NETINFO): Added.
Diffstat (limited to 'src/daemon/slave.c')
-rw-r--r--src/daemon/slave.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 82bee6e9..05f69240 100644
--- a/src/daemon/slave.c
+++ b/src/daemon/slave.c
@@ -263,6 +263,12 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
resp->offset = _offset_data (proc_segment);
break;
#endif
+#if GLIBTOP_SUID_NETINFO
+ case GLIBTOP_CMND_NETINFO:
+ retval = glibtop_get_netinfo_p (server, &resp->u.data.netinfo, parameter);
+ resp->offset = _offset_data (netload);
+ break;
+#endif
#if GLIBTOP_SUID_NETLOAD
case GLIBTOP_CMND_NETLOAD:
retval = glibtop_get_netload_p (server, &resp->u.data.netload, parameter);