blob: eb9cec00eaa913cb2a5524ace8ab525da7fc5ddc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef __NET_H__
#define __NET_H__
#include "hardinfo.h"
typedef struct _NetDevice NetDevice;
struct _NetDevice {
gchar *iface;
gulong recv_bytes;
gulong recv_errors;
gulong recv_packets;
gulong trans_bytes;
gulong trans_errors;
gulong 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
|