client: network connection check

This commit is contained in:
Tim Kourt 2017-04-27 12:36:25 -07:00 committed by Denis Kenzior
parent c6b05c722b
commit bc17967c91
1 changed files with 7 additions and 1 deletions

View File

@ -46,7 +46,13 @@ static void check_errors_method_callback(struct l_dbus_message *message,
bool network_is_connected(const char *path)
{
return false;
const struct network *network;
const struct proxy_interface *proxy =
proxy_interface_find(IWD_NETWORK_INTERFACE, path);
network = proxy_interface_get_data(proxy);
return network->connected;
}
void network_connect(const char *path)