Reflect latest interface changes.

This commit is contained in:
Martin Baulig
1999-12-26 13:43:04 +00:00
parent f489ea871d
commit d7f088bef0
3 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -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);
memset (buf, 0, sizeof (glibtop_interface_names));
memset (array, 0, sizeof (glibtop_array));
return NULL;
}
+2 -1
View File
@@ -41,7 +41,8 @@ glibtop_init_netload_p (glibtop *server)
int
glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
const char *interface)
const char *interface, unsigned transport,
unsigned protocol)
{
memset (buf, 0, sizeof (glibtop_netload));
+3 -4
View File
@@ -40,10 +40,9 @@ glibtop_init_proc_args_p (glibtop *server)
/* Provides detailed information about a process. */
char *
glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
pid_t pid, unsigned max_len)
char **
glibtop_get_proc_args_p (glibtop *server, glibtop_array *array, pid_t pid)
{
memset (buf, 0, sizeof (glibtop_proc_args));
memset (array, 0, sizeof (glibtop_array));
return NULL;
}