network: Add network_get_netdev

This commit is contained in:
Denis Kenzior 2016-05-11 22:02:49 -05:00
parent 0847e31542
commit 54574dc153
2 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,11 @@ const char *network_get_ssid(struct network *network)
return network->ssid;
}
struct netdev *network_get_netdev(struct network *network)
{
return network->netdev;
}
void network_init()
{
networks = l_queue_new();

View File

@ -42,6 +42,7 @@ 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);
struct netdev *network_get_netdev(struct network *network);
void network_init();
void network_exit();