$darkmode
Elektra 0.11.0
|
I/O Adapter for D-Bus. More...
#include <kdbhelper.h>
#include <kdbio/adapters/dbus.h>
#include <kdblogger.h>
#include <stdlib.h>
#include <string.h>
Functions | |
ElektraIoAdapterDbusHandle * | elektraIoAdapterDbusAttach (DBusConnection *connection, ElektraIoInterface *ioBinding) |
Attach D-Bus connection to asynchronous I/O binding. More... | |
int | elektraIoAdapterDbusCleanup (ElektraIoAdapterDbusHandle *priv) |
Remove D-Bus connection from I/O binding. More... | |
I/O Adapter for D-Bus.
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 |