13 # include <dbus/dbus.h>
15 # ifndef DBUS_TIMEOUT_USE_DEFAULT
16 # define DBUS_TIMEOUT_USE_DEFAULT -1
26 DBusPendingCall *
pcmk_dbus_send(DBusMessage *msg, DBusConnection *connection,
27 void(*done)(DBusPendingCall *pending,
void *user_data),
void *user_data,
int timeout);
33 bool pcmk_dbus_type_check(DBusMessage *msg, DBusMessageIter *field,
int expected,
const char *
function,
int line);
37 DBusConnection *connection,
const char *
target,
const char *obj,
const gchar * iface,
const char *
name,
38 void (*callback)(
const char *name,
const char *value,
void *userdata),
void *userdata,
39 DBusPendingCall **pending,
int timeout);
void pcmk_dbus_disconnect(DBusConnection *connection)
bool pcmk_dbus_find_error(DBusPendingCall *pending, DBusMessage *reply, DBusError *ret)
DBusPendingCall * pcmk_dbus_send(DBusMessage *msg, DBusConnection *connection, void(*done)(DBusPendingCall *pending, void *user_data), void *user_data, int timeout)
DBusConnection * pcmk_dbus_connect(void)
bool pcmk_dbus_type_check(DBusMessage *msg, DBusMessageIter *field, int expected, const char *function, int line)
char * pcmk_dbus_get_property(DBusConnection *connection, const char *target, const char *obj, const gchar *iface, const char *name, property_callback_func callback, void *userdata, DBusPendingCall **pending, int timeout)
DBusMessage * pcmk_dbus_send_recv(DBusMessage *msg, DBusConnection *connection, DBusError *error, int timeout)