pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
common.c File Reference
#include <crm_internal.h>
#include <crm/crm.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include <crm/common/util.h>
#include <glib.h>
#include <crm/pengine/internal.h>
Include dependency graph for common.c:

Go to the source code of this file.

Functions

void pe_metadata (void)
 
void verify_pe_options (GHashTable *options)
 
const char * pe_pref (GHashTable *options, const char *name)
 
const char * fail2text (enum action_fail_response fail)
 
enum action_tasks text2task (const char *task)
 
const char * task2text (enum action_tasks task)
 
const char * role2text (enum rsc_role_e role)
 
enum rsc_role_e text2role (const char *role)
 
int merge_weights (int w1, int w2)
 
void add_hash_param (GHashTable *hash, const char *name, const char *value)
 
const char * pe_node_attribute_calculated (pe_node_t *node, const char *name, resource_t *rsc)
 
const char * pe_node_attribute_raw (pe_node_t *node, const char *name)
 

Variables

gboolean was_processing_error = FALSE
 
gboolean was_processing_warning = FALSE
 
pe_cluster_option pe_opts []
 

Function Documentation

void add_hash_param ( GHashTable *  hash,
const char *  name,
const char *  value 
)

Definition at line 423 of file common.c.

const char* fail2text ( enum action_fail_response  fail)

Definition at line 196 of file common.c.

int merge_weights ( int  w1,
int  w2 
)

Definition at line 386 of file common.c.

void pe_metadata ( void  )

Definition at line 175 of file common.c.

const char* pe_node_attribute_calculated ( pe_node_t node,
const char *  name,
resource_t rsc 
)

Definition at line 440 of file common.c.

const char* pe_node_attribute_raw ( pe_node_t node,
const char *  name 
)

Definition at line 478 of file common.c.

const char* pe_pref ( GHashTable *  options,
const char *  name 
)

Definition at line 190 of file common.c.

const char* role2text ( enum rsc_role_e  role)

Definition at line 346 of file common.c.

const char* task2text ( enum action_tasks  task)

Definition at line 293 of file common.c.

enum rsc_role_e text2role ( const char *  role)

Definition at line 367 of file common.c.

enum action_tasks text2task ( const char *  task)

Definition at line 233 of file common.c.

void verify_pe_options ( GHashTable *  options)

Definition at line 184 of file common.c.

Variable Documentation

pe_cluster_option pe_opts[]

Definition at line 86 of file common.c.

gboolean was_processing_error = FALSE

Definition at line 28 of file common.c.

gboolean was_processing_warning = FALSE

Definition at line 29 of file common.c.