dbus/python dbus.py,1.13,1.14 dbus_bindings.pyx.in,1.16,1.17
John Palmieri
johnp at freedesktop.org
Mon Dec 27 08:01:15 PST 2004
- Previous message: dbus ChangeLog,1.615,1.616
- Next message: dbus/dbus dbus-marshal-basic.c, 1.2, 1.3 dbus-marshal-basic.h, 1.2,
1.3 dbus-marshal-recursive.c, 1.2,
1.3 dbus-marshal-recursive.h, 1.2, 1.3 dbus-protocol-new.h, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/dbus/dbus/python
In directory gabe:/tmp/cvs-serv12486/python
Modified Files:
dbus.py dbus_bindings.pyx.in
Log Message:
2004-12-26 John (J5) Palmieri <johnp at 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.
Index: dbus.py
===================================================================
RCS file: /cvs/dbus/dbus/python/dbus.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- dbus.py 23 Dec 2004 00:50:37 -0000 1.13
+++ dbus.py 27 Dec 2004 16:01:13 -0000 1.14
@@ -62,6 +62,10 @@
"""bus_type=[Bus.TYPE_SESSION | Bus.TYPE_SYSTEM | Bus.TYPE_ACTIVATION]
"""
+
+ ACTIVATION_REPLY_ACTIVE = dbus_bindings.ACTIVATION_REPLY_ACTIVE
+ ACTIVATION_REPLY_ALREADY_ACTIVE = dbus_bindings.ACTIVATION_REPLY_ALREADY_ACTIVE
+
def __init__(self, bus_type=TYPE_SESSION, glib_mainloop=True):
self._connection = dbus_bindings.bus_get(bus_type)
@@ -139,6 +143,9 @@
for receiver in receivers:
receiver(*args)
+ def activate_service(self, service):
+ return dbus_bindings.bus_activate_service(self._connection, service)
+
class SystemBus(Bus):
"""The system-wide message bus
"""
Index: dbus_bindings.pyx.in
===================================================================
RCS file: /cvs/dbus/dbus/python/dbus_bindings.pyx.in,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- dbus_bindings.pyx.in 23 Dec 2004 00:50:37 -0000 1.16
+++ dbus_bindings.pyx.in 27 Dec 2004 16:01:13 -0000 1.17
@@ -1144,7 +1144,23 @@
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)
- Previous message: dbus ChangeLog,1.615,1.616
- Next message: dbus/dbus dbus-marshal-basic.c, 1.2, 1.3 dbus-marshal-basic.h, 1.2,
1.3 dbus-marshal-recursive.c, 1.2,
1.3 dbus-marshal-recursive.h, 1.2, 1.3 dbus-protocol-new.h, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dbus-commit
mailing list