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.
This commit is contained in:
Martin Baulig
1999-11-28 19:03:05 +00:00
committed by Martin Baulig
parent d58748ac66
commit f850409d45
8 changed files with 28 additions and 14 deletions

View File

@@ -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;

View File

@@ -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;