From 89de95a89953c20349a8c7c4684eba45feb34bf5 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Mon, 5 Mar 2012 22:35:04 +0000 Subject: Imported Upstream version 0.7.4 --- wavemon.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'wavemon.h') diff --git a/wavemon.h b/wavemon.h index ad0b488..db1e08a 100644 --- a/wavemon.h +++ b/wavemon.h @@ -33,13 +33,13 @@ #include #include #include - #include #include "llist.h" #define CFNAME ".wavemonrc" -/* + +/** * Minimum screen dimensions. * The number of lines depends on the size requirements of scr_info(). The * number of columns comes from the menubar length (10 items of length 6 @@ -99,6 +99,19 @@ static inline void threshold_action(enum threshold_action action) beep(); } +/* + * Symbolic names for scan sort order comparison. + */ +enum scan_sort_order { + SO_CHAN, + SO_CHAN_REV, + SO_SIGNAL, + SO_OPEN, + SO_CHAN_SIG, + SO_OPEN_SIG, + SO_OPEN_CH_SI +}; + /* * Global in-memory representation of current wavemon configuration state */ @@ -124,7 +137,8 @@ extern struct wavemon_conf { override_bounds; /* override autodetection */ /* Enumerated values */ - int lthreshold_action, /* disabled|beep|flash|beep+flash */ + int scan_sort_order, /* channel|signal|open|chan/sig ... */ + lthreshold_action, /* disabled|beep|flash|beep+flash */ hthreshold_action, /* disabled|beep|flash|beep+flash */ startup_scr; /* info|histogram|aplist */ } conf; @@ -257,7 +271,7 @@ static inline int cp_from_scale(float value, const char *cscale, bool reverse) * Wireless interfaces */ extern const char *conf_ifname(void); -extern void conf_get_interface_list(void); +extern void conf_get_interface_list(bool init); extern char **iw_get_interface_list(void); extern void dump_parameters(void); -- cgit v1.2.3