summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-11-28 19:03:05 +0000
committerMartin Baulig <martin@src.gnome.org>1999-11-28 19:03:05 +0000
commitf850409d4579311eb0dcbc6381a00707fa2fd216 (patch)
treee18d3d9113a0c04b0df9059f1926259a271d88dd /src
parentd58748ac6604ee27039385a44b368dd63c7d378f (diff)
downloadlibgtop-f850409d4579311eb0dcbc6381a00707fa2fd216.tar.gz
Added `transport' and `protocol' argument to specify transport method and
1999-11-28 Martin Baulig <martin@home-of-linux.org> * include/glibtop/netload.h (glibtop_get_netload): Added `transport' and `protocol' argument to specify transport method and protocol. * include/glibtop/netinfo.h (glibtop_get_netinfo): Added `transport' argument to specify the transport method.
Diffstat (limited to 'src')
-rw-r--r--src/daemon/main.c6
-rw-r--r--src/daemon/slave.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 7b1e8732..3744b0b1 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -50,6 +50,8 @@ handle_parent_connection (int s)
u_int64_t number G_GNUC_UNUSED;
u_int64_t instance G_GNUC_UNUSED;
u_int64_t strategy G_GNUC_UNUSED;
+ u_int64_t transport G_GNUC_UNUSED;
+ u_int64_t protocol G_GNUC_UNUSED;
glibtop_send_version (glibtop_global_server, s);
@@ -233,13 +235,13 @@ handle_parent_connection (int s)
break;
case GLIBTOP_CMND_NETINFO:
retval = glibtop_get_netinfo_l
- (server, &resp->u.data.netinfo, parameter);
+ (server, &resp->u.data.netinfo, parameter, 0);
do_output (s, resp, _offset_data (netinfo),
0, NULL, retval);
break;
case GLIBTOP_CMND_NETLOAD:
retval = glibtop_get_netload_l
- (server, &resp->u.data.netload, parameter);
+ (server, &resp->u.data.netload, parameter, 0, 0);
do_output (s, resp, _offset_data (netload),
0, NULL, retval);
break;
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 05f69240..773dac30 100644
--- a/src/daemon/slave.c
+++ b/src/daemon/slave.c
@@ -35,6 +35,8 @@ handle_slave_connection (int input, int output)
u_int64_t number G_GNUC_UNUSED;
u_int64_t instance G_GNUC_UNUSED;
u_int64_t strategy G_GNUC_UNUSED;
+ u_int64_t transport G_GNUC_UNUSED;
+ u_int64_t protocol G_GNUC_UNUSED;
unsigned short max_len G_GNUC_UNUSED;
pid_t pid G_GNUC_UNUSED;