diff options
author | Martin Baulig <martin@home-of-linux.org> | 2000-01-22 17:33:51 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 2000-01-22 17:33:51 +0000 |
commit | 931ba0fa8de50b72566d3fea9ed6152eb25b7a59 (patch) | |
tree | 024dcde2e12cfc285a7c3b20326c37af855db0da /sysdeps/stub | |
parent | 8da7cfd0320f9906c176aa7e6aa70559ae2387a3 (diff) | |
download | libgtop-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/stub')
-rw-r--r-- | sysdeps/stub/ppp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/stub/ppp.c b/sysdeps/stub/ppp.c index c2599fb0..fdc348e9 100644 --- a/sysdeps/stub/ppp.c +++ b/sysdeps/stub/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)); |