Return array of `glibtop_interface' structures. (glibtop_interface): New

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

	* includes/glibtop/interfaces.h (glibtop_get_interface_names):
	Return array of `glibtop_interface' structures.
	(glibtop_interface): New structure.
This commit is contained in:
Martin Baulig
1999-12-05 13:54:37 +00:00
committed by Martin Baulig
parent 069eb707f0
commit 2bb9bc624d
4 changed files with 92 additions and 46 deletions

View File

@@ -43,25 +43,6 @@ typedef struct _glibtop_netinfo glibtop_netinfo;
#include <glibtop/interfaces.h>
enum {
GLIBTOP_IF_FLAGS_UP = 1,
GLIBTOP_IF_FLAGS_BROADCAST,
GLIBTOP_IF_FLAGS_DEBUG,
GLIBTOP_IF_FLAGS_LOOPBACK,
GLIBTOP_IF_FLAGS_POINTOPOINT,
GLIBTOP_IF_FLAGS_RUNNING,
GLIBTOP_IF_FLAGS_NOARP,
GLIBTOP_IF_FLAGS_PROMISC,
GLIBTOP_IF_FLAGS_ALLMULTI,
GLIBTOP_IF_FLAGS_OACTIVE,
GLIBTOP_IF_FLAGS_SIMPLEX,
GLIBTOP_IF_FLAGS_LINK0,
GLIBTOP_IF_FLAGS_LINK1,
GLIBTOP_IF_FLAGS_LINK2,
GLIBTOP_IF_FLAGS_ALTPHYS,
GLIBTOP_IF_FLAGS_MULTICAST
};
struct _glibtop_netinfo
{
u_int64_t flags,