Implements the connection to a D-Bus bus.
Copyright (c) 2014 Jean Parpaillon
Behaviours: dbus_connection
.
Authors: Jean Parpaillon (jean.parpaillon@free.fr
).
Actually, the following addresses classes are supported:
unix
tcp
Other classes are ignored, in particular kernel
.
call/2 | Send a message to the bus connection, synchronously. |
cast/2 | Send a message to the bus connection, asynchronously. |
close/1 | Stop the bus proxy. |
connect/1 | Start a proxy to a bus. |
get_bus_id/1 | Retrieve a bus_id from well-known names. |
call(Bus::{'?MODULE', dbus_connection()} | dbus_connection(), Msg::dbus_message()) -> {ok, term()} | {error, term()}
Send a message to the bus connection, synchronously.
cast(Bus::{'?MODULE', dbus_connection()} | dbus_connection(), Msg::dbus_message()) -> ok | {error, term()}
Send a message to the bus connection, asynchronously.
close(Bus::{'?MODULE', dbus_connection()} | dbus_connection()) -> ok
Stop the bus proxy
connect(Bus_id::bus_id() | dbus_known_bus()) -> {ok, dbus_connection()} | {error, term()}
Start a proxy to a bus.
get_bus_id(X1::dbus_known_bus()) -> bus_id() | {unsupported, [bus_id()]}
Retrieve a bus_id from well-known names