dasbus.unix module

class GLibClientUnix[source]

Bases: GLibClient

The low-level DBus client library based on GLib.

classmethod async_call(connection, service_name, object_path, interface_name, method_name, parameters, reply_type, callback, callback_args=(), flags=0, timeout=2147483647)[source]

Asynchronously call a DBus method.

classmethod sync_call(connection, service_name, object_path, interface_name, method_name, parameters, reply_type, flags=0, timeout=2147483647)[source]

Synchronously call a DBus method.

Returns

a result of the DBus call

class GLibServerUnix[source]

Bases: GLibServer

The low-level DBus server library based on GLib.

Adds Unix FD Support to base class

classmethod emit_signal(connection, object_path, interface_name, signal_name, parameters, destination=None)[source]

Emit a DBus signal.

GLib doesn’t seem to support Unix file descriptors in signals. Swap Unix file descriptors with indexes into a list of Unix file descriptors, but emit just the indexes. Log a warning to inform users about the limited support.

classmethod set_call_reply(invocation, out_type, out_value)[source]

Set the reply of the DBus call.