summaryrefslogtreecommitdiff
path: root/sysdeps/solaris
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>2000-01-22 17:33:51 +0000
committerMartin Baulig <martin@src.gnome.org>2000-01-22 17:33:51 +0000
commit931ba0fa8de50b72566d3fea9ed6152eb25b7a59 (patch)
tree024dcde2e12cfc285a7c3b20326c37af855db0da /sysdeps/solaris
parent8da7cfd0320f9906c176aa7e6aa70559ae2387a3 (diff)
downloadlibgtop-931ba0fa8de50b72566d3fea9ed6152eb25b7a59.tar.gz
Added `use_isdn' and `lockfile' arguments. When `use_isdn' is TRUE, we
2000-01-22 Martin Baulig <martin@home-of-linux.org> * include/glibtop/ppp.h (glibtop_get_ppp): Added `use_isdn' and `lockfile' arguments. When `use_isdn' is TRUE, we return ISDN statistics, otherwise `lockfile' is expected to be the modem lockfile and we return PPP statistics for that Modem. Note that for Modem statistics, you need to set both `device' and `lockfile' for some sysdeps ports; so if you have more than one PPP connection active and want to get statistics on the second one you need to set `device' to 1 and `lockfile' to the correct modem lockfile. * include/glibtop/error.h (GLIBTOP_ERROR_NEED_MODEM_LOCKFILE): New error constant; this is returned when you call glibtop_get_ppp () without a modem lockfile and the current sysdeps port requires it.
Diffstat (limited to 'sysdeps/solaris')
-rw-r--r--sysdeps/solaris/ppp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/solaris/ppp.c b/sysdeps/solaris/ppp.c
index c2599fb0..fdc348e9 100644
--- a/sysdeps/solaris/ppp.c
+++ b/sysdeps/solaris/ppp.c
@@ -42,7 +42,8 @@ glibtop_init_ppp_s (glibtop *server)
/* Provides PPP/ISDN information. */
int
-glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
+glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device,
+ unsigned short isdn, const char *lockfile)
{
memset (buf, 0, sizeof (glibtop_ppp));