network: Add network_get_ssid

This commit is contained in:
Denis Kenzior 2016-05-11 22:00:58 -05:00
parent 414bc3198d
commit 9e4200f2f3
2 changed files with 7 additions and 0 deletions

View File

@ -188,6 +188,11 @@ double network_rankmod(uint32_t type, const char *ssid)
return 0.0;
}
const char *network_get_ssid(struct network *network)
{
return network->ssid;
}
void network_init()
{
networks = l_queue_new();

View File

@ -41,5 +41,7 @@ bool network_seen(uint32_t type, const char *ssid);
bool network_connected(uint32_t type, const char *ssid);
double network_rankmod(uint32_t type, const char *ssid);
const char *network_get_ssid(struct network *network);
void network_init();
void network_exit();