summaryrefslogtreecommitdiff
path: root/netspeed/src/backend.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-07 13:35:59 +0200
committerraveit65 <[email protected]>2020-07-29 10:26:22 +0200
commitc7df8ffb512c8bfafdce4ac55f1881addfc89d04 (patch)
treedf6f13b2442d8ef00cae256809482cb2d0f60fde /netspeed/src/backend.h
parentfc49e23c889d3cafb97115dc1114d2946663068a (diff)
downloadmate-applets-c7df8ffb512c8bfafdce4ac55f1881addfc89d04.tar.bz2
mate-applets-c7df8ffb512c8bfafdce4ac55f1881addfc89d04.tar.xz
netspeed: Add netspeed-details.ui
Diffstat (limited to 'netspeed/src/backend.h')
-rw-r--r--netspeed/src/backend.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/netspeed/src/backend.h b/netspeed/src/backend.h
index ffc1ad37..c4d16091 100644
--- a/netspeed/src/backend.h
+++ b/netspeed/src/backend.h
@@ -42,42 +42,42 @@
#define MAX_FORMAT_SIZE 15
/* Different types of interfaces */
-typedef enum
-{
- DEV_LO,
- DEV_ETHERNET,
- DEV_WIRELESS,
- DEV_PPP,
- DEV_PLIP,
- DEV_SLIP,
- DEV_UNKNOWN // this has to be the last one
+typedef enum {
+ DEV_LO,
+ DEV_ETHERNET,
+ DEV_WIRELESS,
+ DEV_PPP,
+ DEV_PLIP,
+ DEV_SLIP,
+ DEV_UNKNOWN // this has to be the last one
} DevType;
/* Some information about the selected network device
*/
-typedef struct
-{
- DevType type;
- char *name;
- char ip[INET_ADDRSTRLEN];
- char netmask[INET_ADDRSTRLEN];
- guint8 hwaddr[ETH_ALEN];
- char ptpip[INET_ADDRSTRLEN];
- char ipv6[INET6_ADDRSTRLEN];
- char *essid;
- gboolean up, running;
- guint64 tx, rx;
- int qual;
- char rx_rate[MAX_FORMAT_SIZE];
- char tx_rate[MAX_FORMAT_SIZE];
- char sum_rate[MAX_FORMAT_SIZE];
+typedef struct {
+ DevType type;
+ char *name;
+ guint32 ip;
+ guint32 netmask;
+ guint32 ptpip;
+ guint8 hwaddr [ETH_ALEN];
+ guint8 ipv6 [16];
+ char *essid;
+ gboolean up;
+ gboolean running;
+ guint64 tx;
+ guint64 rx;
+ int qual;
+ char rx_rate [MAX_FORMAT_SIZE];
+ char tx_rate [MAX_FORMAT_SIZE];
+ char sum_rate [MAX_FORMAT_SIZE];
#ifdef HAVE_NL
- int rssi;
- char *tx_bitrate;
- char *rx_bitrate;
- char *channel;
- guint32 connected_time;
- unsigned char station_mac_addr[ETH_ALEN];
+ int rssi;
+ char *tx_bitrate;
+ char *rx_bitrate;
+ char *channel;
+ guint32 connected_time;
+ unsigned char station_mac_addr [ETH_ALEN];
#endif /* HAVE_NL */
} DevInfo;