diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2005-01-25 19:06:53 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2005-01-25 19:06:53 +0000 |
commit | f4d4d5ace5804acc363fbcff51fbdc82c078702b (patch) | |
tree | c265818a71d9743f805eb36e2c8541248eb40ffa /python/dbus.py | |
parent | 737479031f51b00020b6020f8780137bb4a3de1b (diff) |
* python/dbus_bindings.pyx.in: Rename of methods and bindings
- get_base_service->get_unique_name
- bus_get_base_service->bus_get_unique_name
- dbus_bus_get_base_service -> dbus_bus_get_unique_name
- ACTIVATION_REPLY_ACTIVATED -> DBUS_START_REPLY_SUCCESS
- ACTIVATION_REPLY_ALREADY_ACTIVE -> DBUS_START_REPLY_ALREADY_RUNNING
- bus_activate_service -> bus_start_service_by_name
- dbus_bus_activate_service -> dbus_bus_start_service_by_name
- bus_acquire_service -> bus_request_name
- dbus_bus_acquire_service -> dbus_bus_request_name
- bus_service_exists -> bus_name_has_owner
- dbus_bus_service_exists -> dbus_bus_name_has_owner
* python/dbus.py: Rename of methods
- activate_service -> start_service_by_name
- bus_acquire_service -> bus_request_name
- ACTIVATION_REPLY_ACTIVATED -> START_REPLY_SUCCESS
- ACTIVATION_REPLY_ALREADY_ACTIVE -> START_REPLY_ALREADY_RUNNING
Diffstat (limited to 'python/dbus.py')
-rw-r--r-- | python/dbus.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/dbus.py b/python/dbus.py index 2857e15f..72919d90 100644 --- a/python/dbus.py +++ b/python/dbus.py @@ -63,8 +63,8 @@ class Bus: """bus_type=[Bus.TYPE_SESSION | Bus.TYPE_SYSTEM | Bus.TYPE_ACTIVATION] """ - ACTIVATION_REPLY_ACTIVATED = dbus_bindings.ACTIVATION_REPLY_ACTIVATED - ACTIVATION_REPLY_ALREADY_ACTIVE = dbus_bindings.ACTIVATION_REPLY_ALREADY_ACTIVE + START_REPLY_SUCCESS = dbus_bindings.DBUS_START_REPLY_SUCCESS + START_REPLY_ALREADY_RUNNING = dbus_bindings.DBUS_START_REPLY_ALREADY_RUNNING def __init__(self, bus_type=TYPE_SESSION, glib_mainloop=True): self._connection = dbus_bindings.bus_get(bus_type) @@ -143,8 +143,8 @@ class Bus: for receiver in receivers: receiver(*args) - def activate_service(self, service): - return dbus_bindings.bus_activate_service(self._connection, service) + def start_service_by_name(self, service): + return dbus_bindings.bus_start_service_by_name(self._connection, service) class SystemBus(Bus): """The system-wide message bus @@ -241,7 +241,7 @@ class Service: else: self._bus = bus - dbus_bindings.bus_acquire_service(self._bus.get_connection(), service_name) + dbus_bindings.bus_request_name(self._bus.get_connection(), service_name) def get_bus(self): """Get the Bus this Service is on""" |