in pystemd/dbuslib.pyx [0:0]
def get_property(self,
const char *destination,
const char *path,
const char *interface,
const char *property,
const char *rtype):
cdef:
int r
dbusc.sd_bus_error error = dbusc.sd_bus_error(NULL, NULL, 0)
DbusMessage msg = DbusMessage()
r = dbusc.sd_bus_get_property(
self.bus,
destination,
path,
interface,
property,
&error,
msg.ref(),
rtype
)
if r < 0:
raise DBusError(r, error.name, error.message)
msg.process_reply(False)
return msg.body