#include <crm_internal.h>
#include <crm/crm.h>
#include <dbus/dbus.h>
#include <pcmk-dbus.h>
Go to the source code of this file.
|
DBusConnection * | pcmk_dbus_connect (void) |
|
void | pcmk_dbus_disconnect (DBusConnection *connection) |
|
bool | pcmk_dbus_find_error (DBusPendingCall *pending, DBusMessage *reply, DBusError *ret) |
|
DBusMessage * | pcmk_dbus_send_recv (DBusMessage *msg, DBusConnection *connection, DBusError *error, int timeout) |
|
DBusPendingCall * | pcmk_dbus_send (DBusMessage *msg, DBusConnection *connection, void(*done)(DBusPendingCall *pending, void *user_data), void *user_data, int timeout) |
|
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) |
|
◆ BUS_PROPERTY_IFACE
#define BUS_PROPERTY_IFACE "org.freedesktop.DBus.Properties" |
◆ ERR_INVALID_REPLY
#define ERR_INVALID_REPLY "org.clusterlabs.pacemaker.InvalidReply" |
◆ ERR_INVALID_REPLY_METHOD
#define ERR_INVALID_REPLY_METHOD "org.clusterlabs.pacemaker.InvalidReply.Method" |
◆ ERR_INVALID_REPLY_SIGNAL
#define ERR_INVALID_REPLY_SIGNAL "org.clusterlabs.pacemaker.InvalidReply.Signal" |
◆ ERR_INVALID_REPLY_TYPE
#define ERR_INVALID_REPLY_TYPE "org.clusterlabs.pacemaker.InvalidReply.Type" |
◆ ERR_NO_REPLY
#define ERR_NO_REPLY "org.clusterlabs.pacemaker.NoReply" |
◆ ERR_NO_REQUEST
#define ERR_NO_REQUEST "org.clusterlabs.pacemaker.NoRequest" |
◆ ERR_SEND_FAILED
#define ERR_SEND_FAILED "org.clusterlabs.pacemaker.SendFailed" |
◆ property_callback_func
typedef void(* property_callback_func) (const char *name, const char *value, void *userdata) |
◆ pcmk_dbus_connect()
DBusConnection* pcmk_dbus_connect |
( |
void |
| ) |
|
◆ pcmk_dbus_disconnect()
void pcmk_dbus_disconnect |
( |
DBusConnection * |
connection | ) |
|
◆ pcmk_dbus_find_error()
bool pcmk_dbus_find_error |
( |
DBusPendingCall * |
pending, |
|
|
DBusMessage * |
reply, |
|
|
DBusError * |
ret |
|
) |
| |
◆ pcmk_dbus_get_property()
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 |
|
) |
| |
◆ pcmk_dbus_send()
DBusPendingCall* pcmk_dbus_send |
( |
DBusMessage * |
msg, |
|
|
DBusConnection * |
connection, |
|
|
void(*)(DBusPendingCall *pending, void *user_data) |
done, |
|
|
void * |
user_data, |
|
|
int |
timeout |
|
) |
| |
◆ pcmk_dbus_send_recv()
DBusMessage* pcmk_dbus_send_recv |
( |
DBusMessage * |
msg, |
|
|
DBusConnection * |
connection, |
|
|
DBusError * |
error, |
|
|
int |
timeout |
|
) |
| |
◆ pcmk_dbus_type_check()
bool pcmk_dbus_type_check |
( |
DBusMessage * |
msg, |
|
|
DBusMessageIter * |
field, |
|
|
int |
expected, |
|
|
const char * |
function, |
|
|
int |
line |
|
) |
| |