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