mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-23 00:20:43 +01:00
iwd: Fix agent DBus method parameter types
The object path DBus type wasn't being used correctly in the parameters signatures, fix them.
This commit is contained in:
parent
c8b283b818
commit
190ed7b2c9
1 changed files with 4 additions and 4 deletions
|
|
@ -1282,14 +1282,14 @@ get_agent_request_network_path(GDBusMethodInvocation *invocation)
|
|||
const char *network_path = NULL;
|
||||
|
||||
if (nm_streq(method_name, "RequestPassphrase"))
|
||||
g_variant_get(params, "(s)", &network_path);
|
||||
g_variant_get(params, "(o)", &network_path);
|
||||
else if (nm_streq(method_name, "RequestPrivateKeyPassphrase"))
|
||||
g_variant_get(params, "(s)", &network_path);
|
||||
g_variant_get(params, "(o)", &network_path);
|
||||
else if (nm_streq(method_name, "RequestUserNameAndPassword"))
|
||||
g_variant_get(params, "(s)", &network_path);
|
||||
g_variant_get(params, "(o)", &network_path);
|
||||
else if (nm_streq(method_name, "RequestUserPassword")) {
|
||||
const char *user;
|
||||
g_variant_get(params, "(ss)", &network_path, &user);
|
||||
g_variant_get(params, "(os)", &network_path, &user);
|
||||
}
|
||||
|
||||
return network_path;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue