network: Add network_get_security()

This commit is contained in:
Denis Kenzior 2016-05-11 22:10:18 -05:00
parent f3ad1492c9
commit b166285f44
2 changed files with 6 additions and 0 deletions

View File

@ -203,6 +203,11 @@ const char *network_get_path(struct network *network)
return network->object_path;
}
enum security network_get_security(struct network *network)
{
return network->security;
}
void network_init()
{
networks = l_queue_new();

View File

@ -44,6 +44,7 @@ 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);
const char *network_get_path(struct network *network);
enum security network_get_security(struct network *network);
void network_init();
void network_exit();