pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
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/common/scheduler_internal.h>
#include <crm/pengine/internal.h>
Include dependency graph for common.c:

Go to the source code of this file.

Functions

void pe_metadata (pcmk__output_t *out)
 
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)
 
void add_hash_param (GHashTable *hash, const char *name, const char *value)
 
const char * pe__node_attribute_calculated (const pcmk_node_t *node, const char *name, const pcmk_resource_t *rsc, enum pcmk__rsc_node node_type, bool force_host)
 
const char * pe_node_attribute_raw (const pcmk_node_t *node, const char *name)
 

Variables

gboolean was_processing_error = FALSE
 
gboolean was_processing_warning = FALSE
 

Function Documentation

◆ add_hash_param()

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

Definition at line 508 of file common.c.

◆ fail2text()

const char* fail2text ( enum action_fail_response  fail)

Definition at line 320 of file common.c.

◆ pe__node_attribute_calculated()

const char* pe__node_attribute_calculated ( const pcmk_node_t node,
const char *  name,
const pcmk_resource_t rsc,
enum pcmk__rsc_node  node_type,
bool  force_host 
)

Definition at line 546 of file common.c.

◆ pe_metadata()

void pe_metadata ( pcmk__output_t out)

Definition at line 295 of file common.c.

◆ pe_node_attribute_raw()

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

Definition at line 621 of file common.c.

◆ pe_pref()

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

Definition at line 314 of file common.c.

◆ role2text()

const char* role2text ( enum rsc_role_e  role)

Definition at line 458 of file common.c.

◆ task2text()

const char* task2text ( enum action_tasks  task)

Definition at line 405 of file common.c.

◆ text2role()

enum rsc_role_e text2role ( const char *  role)

Definition at line 487 of file common.c.

◆ text2task()

enum action_tasks text2task ( const char *  task)

Definition at line 360 of file common.c.

◆ verify_pe_options()

void verify_pe_options ( GHashTable *  options)

Definition at line 308 of file common.c.

Variable Documentation

◆ was_processing_error

gboolean was_processing_error = FALSE

Definition at line 21 of file common.c.

◆ was_processing_warning

gboolean was_processing_warning = FALSE

Definition at line 22 of file common.c.