diff options
author | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2011-07-13 11:08:51 +0200 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2011-07-28 14:19:37 +0200 |
commit | 5144c3e1278b4f95c79c05fc2277baaec33fecdc (patch) | |
tree | c435c52a224fb0960b007d7d83bc66f738c3577b /include | |
parent | c4907672cd696f9e25d02478ce46100b62a11dcb (diff) | |
download | libgtop-5144c3e1278b4f95c79c05fc2277baaec33fecdc.tar.gz |
Expand to support ifmedia(4) types as found on BSD.
https://bugzilla.gnome.org/show_bug.cgi?id=652713
Diffstat (limited to 'include')
-rw-r--r-- | include/glibtop/netlist.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/glibtop/netlist.h b/include/glibtop/netlist.h index f821c77d..8857a63e 100644 --- a/include/glibtop/netlist.h +++ b/include/glibtop/netlist.h @@ -26,8 +26,9 @@ G_BEGIN_DECLS #define GLIBTOP_NETLIST_NUMBER 0 +#define GLIBTOP_NETLIST_MEDIA_TYPE 1 -#define GLIBTOP_MAX_NETLIST 1 +#define GLIBTOP_MAX_NETLIST 2 typedef struct _glibtop_netlist glibtop_netlist; @@ -35,6 +36,7 @@ struct _glibtop_netlist { guint64 flags; guint32 number; + gchar *dev_type; }; char** glibtop_get_netlist(glibtop_netlist *buf); |