New file.

1999-12-12  Martin Baulig  <martin@home-of-linux.org>

	* netinfo.c: New file.

	* interfaces.c: Reflect latest interface changes.
	* netload.c: Likewise.
This commit is contained in:
Martin Baulig
1999-12-12 16:09:03 +00:00
committed by Martin Baulig
parent 881c2a2086
commit 1a25c3ade9
6 changed files with 214 additions and 54 deletions

View File

@@ -26,8 +26,8 @@
#include <glibtop/interfaces.h>
static const unsigned long _glibtop_sysdeps_interface_names =
(1L << GLIBTOP_INTERFACE_NAMES_NUMBER) +
(1L << GLIBTOP_INTERFACE_NAMES_SIZE);
(1L << GLIBTOP_ARRAY_NUMBER) + (1L << GLIBTOP_ARRAY_SIZE) +
(1L << GLIBTOP_ARRAY_TOTAL);
/* Init function. */
@@ -41,14 +41,14 @@ glibtop_init_interface_names_p (glibtop *server)
/* Provides network statistics. */
char *
glibtop_get_interface_names_p (glibtop *server, glibtop_interface_names *buf,
unsigned interface, unsigned number,
unsigned instance, unsigned strategy)
glibtop_interface *
glibtop_get_interface_names_p (glibtop *server, glibtop_array *array,
u_int64_t interface, u_int64_t number,
u_int64_t instance, u_int64_t strategy)
{
glibtop_init_s (&server, GLIBTOP_SYSDEPS_INTERFACE_NAMES, 0);
glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_INTERFACE_NAMES), 0);
memset (buf, 0, sizeof (glibtop_interface_names));
memset (array, 0, sizeof (glibtop_array));
return NULL;
}