networkctl: use sd_bus_get_property
This commit is contained in:
@@ -675,17 +675,7 @@ static int link_get_property(
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
return sd_bus_call_method(
|
return sd_bus_get_property(bus, "org.freedesktop.network1", path, iface, propname, error, reply, "ss");
|
||||||
bus,
|
|
||||||
"org.freedesktop.network1",
|
|
||||||
path,
|
|
||||||
"org.freedesktop.DBus.Properties",
|
|
||||||
"Get",
|
|
||||||
error,
|
|
||||||
reply,
|
|
||||||
"ss",
|
|
||||||
iface,
|
|
||||||
propname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int acquire_link_bitrates(sd_bus *bus, LinkInfo *link) {
|
static int acquire_link_bitrates(sd_bus *bus, LinkInfo *link) {
|
||||||
|
|||||||
Reference in New Issue
Block a user