From 8c1612d32c5682a86216adb8c8d11ce715fe5475 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Mon, 19 Jun 2017 14:38:30 -0500 Subject: Import Upstream version 0.3.6 --- net.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 net.h (limited to 'net.h') diff --git a/net.h b/net.h new file mode 100644 index 00000000..eeb0fa49 --- /dev/null +++ b/net.h @@ -0,0 +1,29 @@ +#ifndef __NET_H__ +#define __NET_H__ + +#include "hardinfo.h" + +typedef struct _NetDevice NetDevice; + +struct _NetDevice { + gchar *iface; + + guint recv_bytes; + guint recv_errors; + guint recv_packets; + + guint trans_bytes; + guint trans_errors; + guint trans_packets; + + NetDevice *next; +}; + + +NetDevice *hi_scan_net(void); +GtkWidget *net_get_widget(MainWindow *mainwindow); +void hi_show_net_info(MainWindow *mainwindow, NetDevice *device); + +gboolean net_update(gpointer data); + +#endif -- cgit v1.2.3