eEcho blog

is een halte van de gedachte

D-Bus

D-Bus (Desktop Bus) allows programs to register on it for offering services to others. It also offers client programs the possibility to look up which services are available. Programs can also register as waiting for events of the kernel like hot swapping hardware.

D-Bus is implemented as a daemon. Users can run several instances of it, each called a channel. There will usually be a privileged system channel, and a private instance for each logged in user. The private instances are required because the system channel has access restrictions.

The main mission of the system channel is to deliver the signals from the HAL daemon to the processes interested in them. The mission of the private instances is to provide unrestricted communication among any applications of the user.


http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html
This tutorial requires Python 2.4 or up, and dbus-python 0.80rc4 or up.

Contents

* Connecting to the Bus
* Making method calls
o Proxy objects
o Interfaces and methods
+ See also
o Data types
+ Basic types
+ Basic type conversions
+ Container types
+ Return values, and the byte_arrays and utf8_strings options
* Making asynchronous method calls
o Setting up an event loop
+ Backwards compatibility: dbus.glib
+ The Qt main loop
o Making asynchronous calls
+ See also
* Receiving signals
o Signal matching
o Getting more information from a signal
o String argument matching
o Receiving signals from a proxy object
o See also
* Claiming a bus name
o The unique-instance idiom
* Exporting objects
o Inheriting from dbus.service.Object
o Exporting methods with dbus.service.method
+ Finding out the caller’s bus name
+ Asynchronous method implementations
o Emitting signals with dbus.service.signal
+ Example
* License for this document

Comments are closed.

Home | info@eecho.info | Voorwaarden | Blog