pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
dbus.c File Reference
#include <crm_internal.h>
#include <crm/crm.h>
#include <crm/services.h>
#include <dbus/dbus.h>
#include <pcmk-dbus.h>
Include dependency graph for dbus.c:

Go to the source code of this file.

Macros

#define ERR_NO_REQUEST   "org.clusterlabs.pacemaker.NoRequest"
 
#define ERR_NO_REPLY   "org.clusterlabs.pacemaker.NoReply"
 
#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_SEND_FAILED   "org.clusterlabs.pacemaker.SendFailed"
 
#define BUS_PROPERTY_IFACE   "org.freedesktop.DBus.Properties"
 

Typedefs

typedef void(* property_callback_func )(const char *name, const char *value, void *userdata)
 

Functions

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)
 

Macro Definition Documentation

#define BUS_PROPERTY_IFACE   "org.freedesktop.DBus.Properties"

Definition at line 564 of file dbus.c.

#define ERR_INVALID_REPLY   "org.clusterlabs.pacemaker.InvalidReply"

Definition at line 309 of file dbus.c.

#define ERR_INVALID_REPLY_METHOD   "org.clusterlabs.pacemaker.InvalidReply.Method"

Definition at line 310 of file dbus.c.

#define ERR_INVALID_REPLY_SIGNAL   "org.clusterlabs.pacemaker.InvalidReply.Signal"

Definition at line 311 of file dbus.c.

#define ERR_INVALID_REPLY_TYPE   "org.clusterlabs.pacemaker.InvalidReply.Type"

Definition at line 312 of file dbus.c.

#define ERR_NO_REPLY   "org.clusterlabs.pacemaker.NoReply"

Definition at line 308 of file dbus.c.

#define ERR_NO_REQUEST   "org.clusterlabs.pacemaker.NoRequest"

Definition at line 307 of file dbus.c.

#define ERR_SEND_FAILED   "org.clusterlabs.pacemaker.SendFailed"

Definition at line 313 of file dbus.c.

Typedef Documentation

typedef void(* property_callback_func)(const char *name,const char *value,void *userdata)

Definition at line 567 of file dbus.c.

Function Documentation

DBusConnection* pcmk_dbus_connect ( void  )

Definition at line 260 of file dbus.c.

void pcmk_dbus_disconnect ( DBusConnection *  connection)

Definition at line 296 of file dbus.c.

bool pcmk_dbus_find_error ( DBusPendingCall *  pending,
DBusMessage *  reply,
DBusError *  ret 
)

Definition at line 331 of file dbus.c.

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 
)

Definition at line 694 of file dbus.c.

DBusPendingCall* pcmk_dbus_send ( DBusMessage *  msg,
DBusConnection *  connection,
void(*)(DBusPendingCall *pending, void *user_data)  done,
void *  user_data,
int  timeout 
)

Definition at line 477 of file dbus.c.

DBusMessage* pcmk_dbus_send_recv ( DBusMessage *  msg,
DBusConnection *  connection,
DBusError *  error,
int  timeout 
)

Definition at line 413 of file dbus.c.

bool pcmk_dbus_type_check ( DBusMessage *  msg,
DBusMessageIter *  field,
int  expected,
const char *  function,
int  line 
)

Definition at line 517 of file dbus.c.