3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

network: Add network_get_path()

This commit is contained in:
Denis Kenzior 2016-05-11 22:07:38 -05:00
parent 2ccbf65519
commit beea6897d3
2 changed files with 6 additions and 0 deletions

View File

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

View File

@ -43,6 +43,7 @@ double network_rankmod(uint32_t type, const char *ssid);
const char *network_get_ssid(struct network *network); const char *network_get_ssid(struct network *network);
struct netdev *network_get_netdev(struct network *network); struct netdev *network_get_netdev(struct network *network);
const char *network_get_path(struct network *network);
void network_init(); void network_init();
void network_exit(); void network_exit();