mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 23:40:43 +01:00
client: change network_connect param type
Take network proxy object instead of just a path into network_connect
This commit is contained in:
parent
b0a681d5b3
commit
0b84e31c40
@ -55,11 +55,8 @@ bool network_is_connected(const char *path)
|
|||||||
return network->connected;
|
return network->connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
void network_connect(const char *path)
|
void network_connect(const struct proxy_interface *proxy)
|
||||||
{
|
{
|
||||||
const struct proxy_interface *proxy =
|
|
||||||
proxy_interface_find(IWD_NETWORK_INTERFACE, path);
|
|
||||||
|
|
||||||
if (!proxy)
|
if (!proxy)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ struct network_args {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool network_is_connected(const char *path);
|
bool network_is_connected(const char *path);
|
||||||
void network_connect(const char *path);
|
void network_connect(const struct proxy_interface *proxy);
|
||||||
|
|
||||||
struct network_args *network_parse_args(const char *args);
|
struct network_args *network_parse_args(const char *args);
|
||||||
void network_args_destroy(struct network_args *network_args);
|
void network_args_destroy(struct network_args *network_args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user