Elektra
0.8.23
|
I/O Adapter for D-Bus. More...
Typedefs | |
typedef struct _ElektraIoAdapterDbusHandle | ElektraIoAdapterDbusHandle |
D-Bus Adapter Handle. More... | |
Functions | |
ElektraIoAdapterDbusHandle * | elektraIoAdapterDbusAttach (DBusConnection *connection, ElektraIoInterface *ioBinding) |
Attach D-Bus connection to asynchronous I/O binding. More... | |
int | elektraIoAdapterDbusCleanup (ElektraIoAdapterDbusHandle *handle) |
Remove D-Bus connection from I/O binding. More... | |
I/O Adapter for D-Bus.
typedef struct _ElektraIoAdapterDbusHandle ElektraIoAdapterDbusHandle |
D-Bus Adapter Handle.
Returned by elektraIoAdapterDbusAttach().
ElektraIoAdapterDbusHandle* elektraIoAdapterDbusAttach | ( | DBusConnection * | connection, |
ElektraIoInterface * | ioBinding | ||
) |
Attach D-Bus connection to asynchronous I/O binding.
Messages are sent and received using the I/O binding
connection | D-Bus connection |
ioBinding | I/O binding |
int elektraIoAdapterDbusCleanup | ( | ElektraIoAdapterDbusHandle * | handle | ) |
Remove D-Bus connection from I/O binding.
This function frees the passed handle.
Currently it is NOT possible to revert all changes made to a connection by elektraIoAdapterDbusAttach(). It is advisable to call dbus_connection_unref() or dbus_connection_close() in case of a private bus connection afterwards.
handle | adapter handle |
1 | on success |
0 | on error |