pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
crm_internal.h File Reference
#include <config.h>
#include <portability.h>
#include <glib.h>
#include <stdbool.h>
#include <libxml/tree.h>
#include <crm/lrmd.h>
#include <crm/common/logging.h>
#include <crm/common/ipcs_internal.h>
#include <crm/common/options_internal.h>
#include <crm/common/internal.h>
#include <qb/qbipc_common.h>
#include <corosync/corotypes.h>
Include dependency graph for crm_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PCMK__NO_COMPAT
 
#define set_bit(word, bit)   word = crm_set_bit(__FUNCTION__, __LINE__, NULL, word, bit)
 
#define clear_bit(word, bit)   word = crm_clear_bit(__FUNCTION__, __LINE__, NULL, word, bit)
 
#define PCMK__XA_ATTR_DAMPENING   "attr_dampening"
 
#define PCMK__XA_ATTR_FORCE   "attrd_is_force_write"
 
#define PCMK__XA_ATTR_INTERVAL   "attr_clear_interval"
 
#define PCMK__XA_ATTR_IS_PRIVATE   "attr_is_private"
 
#define PCMK__XA_ATTR_IS_REMOTE   "attr_is_remote"
 
#define PCMK__XA_ATTR_NAME   "attr_name"
 
#define PCMK__XA_ATTR_NODE_ID   "attr_host_id"
 
#define PCMK__XA_ATTR_NODE_NAME   "attr_host"
 
#define PCMK__XA_ATTR_OPERATION   "attr_clear_operation"
 
#define PCMK__XA_ATTR_PATTERN   "attr_regex"
 
#define PCMK__XA_ATTR_RESOURCE   "attr_resource"
 
#define PCMK__XA_ATTR_SECTION   "attr_section"
 
#define PCMK__XA_ATTR_SET   "attr_set"
 
#define PCMK__XA_ATTR_USER   "attr_user"
 
#define PCMK__XA_ATTR_UUID   "attr_key"
 
#define PCMK__XA_ATTR_VALUE   "attr_value"
 
#define PCMK__XA_ATTR_VERSION   "attr_version"
 
#define PCMK__XA_ATTR_WRITER   "attr_writer"
 
#define PCMK__XA_MODE   "mode"
 
#define PCMK__XA_TASK   "task"
 
#define PCMK__SERVER_BASED_RO   "cib_ro"
 
#define PCMK__SERVER_BASED_RW   "cib_rw"
 
#define PCMK__SERVER_BASED_SHM   "cib_shm"
 
#define PCMK__ATTRD_CMD_PEER_REMOVE   "peer-remove"
 
#define PCMK__ATTRD_CMD_UPDATE   "update"
 
#define PCMK__ATTRD_CMD_UPDATE_BOTH   "update-both"
 
#define PCMK__ATTRD_CMD_UPDATE_DELAY   "update-delay"
 
#define PCMK__ATTRD_CMD_QUERY   "query"
 
#define PCMK__ATTRD_CMD_REFRESH   "refresh"
 
#define PCMK__ATTRD_CMD_FLUSH   "flush"
 
#define PCMK__ATTRD_CMD_SYNC   "sync"
 
#define PCMK__ATTRD_CMD_SYNC_RESPONSE   "sync-response"
 
#define PCMK__ATTRD_CMD_CLEAR_FAILURE   "clear-failure"
 
#define PCMK__ENV_PHYSICAL_HOST   "physical_host"
 
#define PCMK__OUTPUT_ARGS(ARGS...)
 

Typedefs

typedef struct
qb_ipc_request_header 
cs_ipc_header_request_t
 
typedef struct
qb_ipc_response_header 
cs_ipc_header_response_t
 

Functions

void crm_make_daemon (const char *name, gboolean daemonize, const char *pidfile)
 
char * generate_hash_key (const char *crm_msg_reference, const char *sys)
 
void strip_text_nodes (xmlNode *xml)
 
void pcmk_panic (const char *origin)
 
pid_t pcmk_locate_sbd (void)
 
const char * crm_xml_add_last_written (xmlNode *xml_node)
 
void crm_xml_dump (xmlNode *data, int options, char **buffer, int *offset, int *max, int depth)
 
void crm_buffer_add_char (char **buffer, int *offset, int *max, char c)
 

Macro Definition Documentation

#define clear_bit (   word,
  bit 
)    word = crm_clear_bit(__FUNCTION__, __LINE__, NULL, word, bit)

Definition at line 69 of file crm_internal.h.

#define PCMK__ATTRD_CMD_CLEAR_FAILURE   "clear-failure"

Definition at line 125 of file crm_internal.h.

#define PCMK__ATTRD_CMD_FLUSH   "flush"

Definition at line 122 of file crm_internal.h.

#define PCMK__ATTRD_CMD_PEER_REMOVE   "peer-remove"

Definition at line 116 of file crm_internal.h.

#define PCMK__ATTRD_CMD_QUERY   "query"

Definition at line 120 of file crm_internal.h.

#define PCMK__ATTRD_CMD_REFRESH   "refresh"

Definition at line 121 of file crm_internal.h.

#define PCMK__ATTRD_CMD_SYNC   "sync"

Definition at line 123 of file crm_internal.h.

#define PCMK__ATTRD_CMD_SYNC_RESPONSE   "sync-response"

Definition at line 124 of file crm_internal.h.

#define PCMK__ATTRD_CMD_UPDATE   "update"

Definition at line 117 of file crm_internal.h.

#define PCMK__ATTRD_CMD_UPDATE_BOTH   "update-both"

Definition at line 118 of file crm_internal.h.

#define PCMK__ATTRD_CMD_UPDATE_DELAY   "update-delay"

Definition at line 119 of file crm_internal.h.

#define PCMK__ENV_PHYSICAL_HOST   "physical_host"

Definition at line 132 of file crm_internal.h.

#define PCMK__NO_COMPAT

Definition at line 25 of file crm_internal.h.

#define PCMK__OUTPUT_ARGS (   ARGS...)

Definition at line 177 of file crm_internal.h.

#define PCMK__SERVER_BASED_RO   "cib_ro"

Definition at line 108 of file crm_internal.h.

#define PCMK__SERVER_BASED_RW   "cib_rw"

Definition at line 109 of file crm_internal.h.

#define PCMK__SERVER_BASED_SHM   "cib_shm"

Definition at line 110 of file crm_internal.h.

#define PCMK__XA_ATTR_DAMPENING   "attr_dampening"

Definition at line 82 of file crm_internal.h.

#define PCMK__XA_ATTR_FORCE   "attrd_is_force_write"

Definition at line 83 of file crm_internal.h.

#define PCMK__XA_ATTR_INTERVAL   "attr_clear_interval"

Definition at line 84 of file crm_internal.h.

#define PCMK__XA_ATTR_IS_PRIVATE   "attr_is_private"

Definition at line 85 of file crm_internal.h.

#define PCMK__XA_ATTR_IS_REMOTE   "attr_is_remote"

Definition at line 86 of file crm_internal.h.

#define PCMK__XA_ATTR_NAME   "attr_name"

Definition at line 87 of file crm_internal.h.

#define PCMK__XA_ATTR_NODE_ID   "attr_host_id"

Definition at line 88 of file crm_internal.h.

#define PCMK__XA_ATTR_NODE_NAME   "attr_host"

Definition at line 89 of file crm_internal.h.

#define PCMK__XA_ATTR_OPERATION   "attr_clear_operation"

Definition at line 90 of file crm_internal.h.

#define PCMK__XA_ATTR_PATTERN   "attr_regex"

Definition at line 91 of file crm_internal.h.

#define PCMK__XA_ATTR_RESOURCE   "attr_resource"

Definition at line 92 of file crm_internal.h.

#define PCMK__XA_ATTR_SECTION   "attr_section"

Definition at line 93 of file crm_internal.h.

#define PCMK__XA_ATTR_SET   "attr_set"

Definition at line 94 of file crm_internal.h.

#define PCMK__XA_ATTR_USER   "attr_user"

Definition at line 95 of file crm_internal.h.

#define PCMK__XA_ATTR_UUID   "attr_key"

Definition at line 96 of file crm_internal.h.

#define PCMK__XA_ATTR_VALUE   "attr_value"

Definition at line 97 of file crm_internal.h.

#define PCMK__XA_ATTR_VERSION   "attr_version"

Definition at line 98 of file crm_internal.h.

#define PCMK__XA_ATTR_WRITER   "attr_writer"

Definition at line 99 of file crm_internal.h.

#define PCMK__XA_MODE   "mode"

Definition at line 100 of file crm_internal.h.

#define PCMK__XA_TASK   "task"

Definition at line 101 of file crm_internal.h.

#define set_bit (   word,
  bit 
)    word = crm_set_bit(__FUNCTION__, __LINE__, NULL, word, bit)

Definition at line 68 of file crm_internal.h.

Typedef Documentation

typedef struct qb_ipc_request_header cs_ipc_header_request_t

Definition at line 138 of file crm_internal.h.

typedef struct qb_ipc_response_header cs_ipc_header_response_t

Definition at line 139 of file crm_internal.h.

Function Documentation

void crm_buffer_add_char ( char **  buffer,
int *  offset,
int *  max,
char  c 
)

Definition at line 3293 of file xml.c.

void crm_make_daemon ( const char *  name,
gboolean  daemonize,
const char *  pidfile 
)

Definition at line 403 of file utils.c.

const char* crm_xml_add_last_written ( xmlNode *  xml_node)

Definition at line 2426 of file xml.c.

void crm_xml_dump ( xmlNode *  data,
int  options,
char **  buffer,
int *  offset,
int *  max,
int  depth 
)

Definition at line 3186 of file xml.c.

char* generate_hash_key ( const char *  crm_msg_reference,
const char *  sys 
)

Definition at line 120 of file utils.c.

pid_t pcmk_locate_sbd ( void  )

Definition at line 179 of file watchdog.c.

void pcmk_panic ( const char *  origin)

Definition at line 147 of file watchdog.c.

void strip_text_nodes ( xmlNode *  xml)

Definition at line 2328 of file xml.c.