More fixes, and convert python PS bindings to more glib style method names

This commit is contained in:
Dan Williams
2006-07-23 09:21:00 -05:00
parent 1d0b4e12b8
commit 7c996b0011
12 changed files with 116 additions and 72 deletions
+11
View File
@@ -182,6 +182,17 @@ class PresenceServiceDBusHelper(dbus.service.Object):
port, domain)
return service.object_path()
@dbus.service.method(_PRESENCE_DBUS_INTERFACE,
in_signature="s", out_signature="")
def registerServiceType(self, stype):
self._parent.register_service_type(stype)
@dbus.service.method(_PRESENCE_DBUS_INTERFACE,
in_signature="s", out_signature="")
def unregisterServiceType(self, stype):
self._parent.unregister_service_type(stype)
class PresenceService(object):
def __init__(self):
# interface -> IP address: interfaces we've gotten events on so far