From c7df8ffb512c8bfafdce4ac55f1881addfc89d04 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 7 Jul 2020 13:35:59 +0200 Subject: netspeed: Add netspeed-details.ui --- netspeed/src/backend.h | 62 +++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'netspeed/src/backend.h') 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; -- cgit v1.2.1