pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
unpack.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CURSES_ENABLED   0
 
#define status_printw(fmt, args...)
 
#define status_print(fmt, args...)
 
#define pe_warn_once(pe_wo_bit, fmt...)
 

Enumerations

enum  pe_warn_once_e {
  pe_wo_blind = 0x0001, pe_wo_poweroff = 0x0002, pe_wo_arg_map = 0x0004, pe_wo_stonith_cmd = 0x0008,
  pe_wo_requires = 0x0010, pe_wo_isolation = 0x0020, pe_wo_default_stick = 0x0040, pe_wo_default_isman = 0x0080,
  pe_wo_default_timeo = 0x0100, pe_wo_rsc_failstick = 0x0200, pe_wo_default_rscfs = 0x0400, pe_wo_legacy_notifs = 0x0800
}
 

Functions

gboolean unpack_remote_nodes (xmlNode *xml_resources, pe_working_set_t *data_set)
 
gboolean unpack_resources (xmlNode *xml_resources, pe_working_set_t *data_set)
 
gboolean unpack_config (xmlNode *config, pe_working_set_t *data_set)
 
gboolean unpack_nodes (xmlNode *xml_nodes, pe_working_set_t *data_set)
 
gboolean unpack_tags (xmlNode *xml_tags, pe_working_set_t *data_set)
 
gboolean unpack_status (xmlNode *status, pe_working_set_t *data_set)
 
gboolean unpack_remote_status (xmlNode *status, pe_working_set_t *data_set)
 
gint sort_op_by_callid (gconstpointer a, gconstpointer b)
 
gboolean unpack_lrm_resources (node_t *node, xmlNode *lrm_state, pe_working_set_t *data_set)
 
gboolean add_node_attrs (xmlNode *attrs, node_t *node, gboolean overwrite, pe_working_set_t *data_set)
 
gboolean determine_online_status (xmlNode *node_state, node_t *this_node, pe_working_set_t *data_set)
 

Variables

uint32_t pe_wo
 

Macro Definition Documentation

#define CURSES_ENABLED   0

Definition at line 68 of file unpack.h.

#define pe_warn_once (   pe_wo_bit,
  fmt... 
)
Value:
do { \
if (is_not_set(pe_wo, pe_wo_bit)) { \
if (pe_wo_bit == pe_wo_blind) { \
crm_warn(fmt); \
} else { \
pe_warn(fmt); \
} \
set_bit(pe_wo, pe_wo_bit); \
} \
} while (0);
#define pe_warn(fmt...)
Definition: internal.h:29
#define crm_warn(fmt, args...)
Definition: logging.h:249
#define set_bit(word, bit)
Definition: crm_internal.h:190
uint32_t pe_wo
Definition: unpack.c:50

Definition at line 115 of file unpack.h.

#define status_print (   fmt,
  args... 
)
Value:
if(options & pe_print_html) { \
FILE *stream = print_data; \
fprintf(stream, fmt, ##args); \
} else if(options & pe_print_ncurses) { \
status_printw(fmt, ##args); \
} else if(options & pe_print_printf) { \
FILE *stream = print_data; \
fprintf(stream, fmt, ##args); \
} else if(options & pe_print_xml) { \
FILE *stream = print_data; \
fprintf(stream, fmt, ##args); \
} else if(options & pe_print_log) { \
int log_level = *(int*)print_data; \
do_crm_log(log_level, fmt, ##args); \
}
#define status_printw(fmt, args...)
Definition: unpack.h:74
#define do_crm_log(level, fmt, args...)
Log a message.
Definition: logging.h:129

Definition at line 79 of file unpack.h.

#define status_printw (   fmt,
  args... 
)
Value:
crm_err("printw support requires ncurses to be available during configure"); \
do_crm_log(LOG_WARNING, fmt, ##args);
#define do_crm_log(level, fmt, args...)
Log a message.
Definition: logging.h:129
#define crm_err(fmt, args...)
Definition: logging.h:248

Definition at line 74 of file unpack.h.

Enumeration Type Documentation

Enumerator
pe_wo_blind 
pe_wo_poweroff 
pe_wo_arg_map 
pe_wo_stonith_cmd 
pe_wo_requires 
pe_wo_isolation 
pe_wo_default_stick 
pe_wo_default_isman 
pe_wo_default_timeo 
pe_wo_rsc_failstick 
pe_wo_default_rscfs 
pe_wo_legacy_notifs 

Definition at line 98 of file unpack.h.

Function Documentation

gboolean add_node_attrs ( xmlNode *  attrs,
node_t node,
gboolean  overwrite,
pe_working_set_t data_set 
)

Definition at line 3310 of file unpack.c.

gboolean determine_online_status ( xmlNode *  node_state,
node_t this_node,
pe_working_set_t data_set 
)

Definition at line 1489 of file unpack.c.

gint sort_op_by_callid ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 1560 of file utils.c.

gboolean unpack_config ( xmlNode *  config,
pe_working_set_t data_set 
)

Definition at line 176 of file unpack.c.

gboolean unpack_lrm_resources ( node_t node,
xmlNode *  lrm_state,
pe_working_set_t data_set 
)

Definition at line 2322 of file unpack.c.

gboolean unpack_nodes ( xmlNode *  xml_nodes,
pe_working_set_t data_set 
)

Definition at line 525 of file unpack.c.

gboolean unpack_remote_nodes ( xmlNode *  xml_resources,
pe_working_set_t data_set 
)

Definition at line 611 of file unpack.c.

gboolean unpack_remote_status ( xmlNode *  status,
pe_working_set_t data_set 
)
gboolean unpack_resources ( xmlNode *  xml_resources,
pe_working_set_t data_set 
)

Definition at line 737 of file unpack.c.

gboolean unpack_status ( xmlNode *  status,
pe_working_set_t data_set 
)

Definition at line 1157 of file unpack.c.

gboolean unpack_tags ( xmlNode *  xml_tags,
pe_working_set_t data_set 
)

Definition at line 797 of file unpack.c.

Variable Documentation

uint32_t pe_wo

Definition at line 50 of file unpack.c.