56         crm_debug(
"Values of node health scores: "    74 add_node_health_value(gpointer key, gpointer value, gpointer user_data)
    78         int *health = (
int *) user_data;
    81         crm_trace(
"Combined '%s' into node health score (now %s)",
    99     g_hash_table_foreach(node->
details->
attrs, add_node_health_value,
   117     const char *
name = NULL;
   118     const char *value = NULL;
   131     while (g_hash_table_iter_next(&iter, (gpointer *) &
name,
   132                                   (gpointer *) &value)) {
 GHashTable * attrs
Node attributes. 
const char * pcmk_readable_score(int score)
Return a displayable static string for a score value. 
#define PCMK__VALUE_GREEN
int char2score(const char *score)
Get the integer value of a score string. 
int pe__node_health(pcmk_node_t *node)
pcmk_scheduler_t * data_set
Cluster that node is part of. 
Implementation of pcmk_scheduler_t. 
#define crm_debug(fmt, args...)
#define PCMK__OPT_NODE_HEALTH_RED
#define crm_trace(fmt, args...)
struct pe_node_shared_s * details
Basic node information. 
#define PCMK__OPT_NODE_HEALTH_GREEN
Implementation of pcmk_node_t. 
Cluster status and scheduling. 
#define PCMK__OPT_NODE_HEALTH_YELLOW
void pe__unpack_node_health_scores(pcmk_scheduler_t *scheduler)
pcmk_scheduler_t * scheduler
#define PCMK__VALUE_YELLOW
int pcmk__add_scores(int score1, int score2)
bool pcmk__starts_with(const char *str, const char *prefix)
Check whether a string starts with a certain sequence. 
int pe__sum_node_health_scores(const pcmk_node_t *node, int base_health)