feat(network): signal strength

This commit is contained in:
Alexis
2018-08-09 22:05:15 +02:00
parent 6ccb029097
commit c276c3b907
4 changed files with 19 additions and 5 deletions

View File

@ -35,7 +35,8 @@ namespace waybar::modules {
double frequency;
} wireless_info_t;
private:
void _parseEssid(struct nlattr** bss);
void _parseEssid(struct nlattr **bss);
void _parseSignal(struct nlattr **bss);
bool _associatedOrJoined(struct nlattr **bss);
static int _scanCb(struct nl_msg *msg, void *data);
auto _getInfo() -> void;
@ -44,6 +45,7 @@ namespace waybar::modules {
Json::Value _config;
std::size_t _ifid;
std::string _essid;
int _signalStrength;
};
}