mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +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;
|
||||
}
|
||||
|
||||
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)
|
||||
return;
|
||||
|
||||
|
@ -26,7 +26,7 @@ struct network_args {
|
||||
};
|
||||
|
||||
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);
|
||||
void network_args_destroy(struct network_args *network_args);
|
||||
|
Loading…
Reference in New Issue
Block a user