summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Zeuthen <david@fubar.dk>2005-03-01 20:38:42 +0000
committerDavid Zeuthen <david@fubar.dk>2005-03-01 20:38:42 +0000
commit23a786c133f0f360bd4bd3ae66f31eb098c245ed (patch)
tree0fac8d7199729c2813b4e82eb5286541b28c0b0e /examples
parent211bb338620f061398d9b0f7e498fa729a02a5bb (diff)
Fixup this function to work with the new D-BUS API (device_lock): Be
consistent with new D-BUS naming, e.g. use info.locked.dbus_name instead of info.lock.dbus_service (device_unlock): -do- (service_deleted): Use NameOwnerChanged instead of NameLost as the latter only goes to the service who's lost the name (hald_dbus_filter_function): -do- (hald_dbus_init): Subscribe to NameOwnerChanged rather than NameLost Fixup to use get_unique_name() instead of get_base_service()
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/locking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/locking.py b/examples/locking.py
index fbce2f03..4c011337 100755
--- a/examples/locking.py
+++ b/examples/locking.py
@@ -18,7 +18,7 @@ reason = "locking.py pid %d"%pid
bus = dbus.Bus(dbus.Bus.TYPE_SYSTEM)
hal_service = bus.get_service("org.freedesktop.Hal")
-print "I am %s with pid %d"%(bus.get_connection().get_base_service(), pid)
+print "I am %s with pid %d"%(bus.get_connection().get_unique_name(), pid)
print
dev = hal_service.get_object (dev_udi, "org.freedesktop.Hal.Device")