diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2005-10-18 04:38:05 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2005-10-18 04:38:05 +0000 |
commit | 2b9417707a6cac377e2caca047fde8169236d93e (patch) | |
tree | 9f7b49dd959a7502fc33a620f61a32f8c156c2dd /python/dbus_bindings.pyx | |
parent | 0ae9f138ad4dfacbbd28abd39ce3dee66333539a (diff) |
* glib/dbus-gvalue-utils.c (hash_free_from_gtype): handle gdouble
and G_TYPE_VALUE_ARRAY (DBUS_TYPE_STRUCT)
(gvalue_from_hash_value, hash_value_from_gvalue): handle gdouble
* glib/dbus-gvalue.c (dbus_gvalue_to_signature): add missing
DBUS_STRUCT_BEGIN_CHAR and DBUS_STRUCT_END_CHAR charaters
when constructing struct signatures
* python/_dbus.py (Bus): handle private connections using the
private keyword in the constructor. defaults to private=False
(Bus::close): new method to close a connection to the bus
* python/dbus_bindings.pyx (Connection::close): renamed method
was previously called disconnect
(bus_get): now supports getting a private connection
* python/proxies.py (ProxyMethod::__call__): check if ignore_reply
keyword is set to True. if it is, execute the method without waiting
for a reply
(ProxyObject::_introspect_execute_queue): new method for executing
all the pending methods that were waiting for the introspect to
finish. this is called when introspect either succeeds or fails
(ProxyObject::_introspect_error_handler): call queued methods
Diffstat (limited to 'python/dbus_bindings.pyx')
-rw-r--r-- | python/dbus_bindings.pyx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/python/dbus_bindings.pyx b/python/dbus_bindings.pyx index 35ad492b..f7c88006 100644 --- a/python/dbus_bindings.pyx +++ b/python/dbus_bindings.pyx @@ -278,8 +278,8 @@ cdef class Connection: def get_unique_name(self): return bus_get_unique_name(self) - def disconnect(self): - dbus_connection_disconnect(self.conn) + def close(self): + dbus_connection_close(self.conn) def get_is_connected(self): return dbus_connection_get_is_connected(self.conn) @@ -1638,14 +1638,18 @@ BUS_SESSION = DBUS_BUS_SESSION BUS_SYSTEM = DBUS_BUS_SYSTEM BUS_STARTER = DBUS_BUS_STARTER -def bus_get (bus_type): +def bus_get (bus_type, private=False): cdef DBusError error cdef Connection conn - dbus_error_init(&error) cdef DBusConnection *connection - connection = dbus_bus_get(bus_type, - &error) + dbus_error_init(&error) + if private: + connection = dbus_bus_get_private(bus_type, + &error) + else: + connection = dbus_bus_get(bus_type, + &error) if dbus_error_is_set(&error): errormsg = error.message |