Fix multiple definitions of display variable.
[dockapps.git] / wmwifi / src / wmwifi.h
blobd2f89d9324a2783dc2d72d86aa6936317e13cd54
1 /* Standard headers */
2 #include <sys/types.h>
3 #include <sys/ioctl.h>
4 #include <stdio.h>
5 #include <math.h>
6 #include <errno.h>
7 #include <fcntl.h>
8 #include <ctype.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include <unistd.h>
12 #include <netdb.h> /* gethostbyname, getnetbyname */
13 #include <net/ethernet.h> /* struct ether_addr */
14 #include <sys/time.h> /* struct timeval */
15 #include <linux/wireless.h>
17 #define KILO 1e3
18 #define MEGA 1e6
19 #define GIGA 1e9
21 extern Bool wmwifi_learn;
23 struct wifi {
24 char ifname[255];
25 char essid[IW_ESSID_MAX_SIZE + 1];
26 int ifnum;
27 float link;
28 int level;
29 unsigned int noise;
30 float max_link;
31 float max_qual;
32 struct iw_param bitrate;
34 int get_wifi_info(struct wifi *wfi);
35 int get_max_ifs(void);
36 void next_if(struct wifi *wfi);
37 //void last_if(struct wifi *wfi);