diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2004-12-27 16:01:13 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2004-12-27 16:01:13 +0000 |
commit | a11bbc91a794052eeb0a88aa207b01c871677cf4 (patch) | |
tree | 93c26e14063697be0c6426bb3fd79cb5703c9312 /python/dbus_bindings.pyx.in | |
parent | b8a309ac940374ead27618508ab8f81665ff7d9d (diff) |
2004-12-26 John (J5) Palmieri <johnp@redhat.com>
* python/dbus_bindings.pyx.in (bus_activate_service): Bind
dbus_bus_activate_service
* python/dbus.py (Bus.activate_service): activate a service on the
bus.
Diffstat (limited to 'python/dbus_bindings.pyx.in')
-rw-r--r-- | python/dbus_bindings.pyx.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/python/dbus_bindings.pyx.in b/python/dbus_bindings.pyx.in index 59c38586..db391e1d 100644 --- a/python/dbus_bindings.pyx.in +++ b/python/dbus_bindings.pyx.in @@ -1144,7 +1144,23 @@ def bus_get_unix_user(Connection connection, service_name): if dbus_error_is_set(&error): raise DBusException, error.message return retval + +ACTIVATION_REPLY_ACTIVATED = DBUS_ACTIVATION_REPLY_ACTIVATED +ACTIVATION_REPLY_ALREADY_ACTIVE = DBUS_ACTIVATION_REPLY_ALREADY_ACTIVE +def bus_activate_service(Connection connection, service_name, flags=0): + cdef DBusError error + dbus_error_init(&error) + cdef dbus_bool_t retval + cdef dbus_uint32_t results + cdef DBusConnection *conn + + conn = connection._get_conn() + + retval = dbus_bus_activate_service(conn, service_name, flags, &results, &error) + + return (retval, results) + def bus_register(Connection connection): cdef DBusError error dbus_error_init(&error) |