pacemaker  1.1.15-e174ec8
Scalable High-Availability cluster resource manager
Enumerations | Functions
rules.h File Reference
#include <crm/crm.h>
#include <crm/common/iso8601.h>
#include <crm/pengine/common.h>
Include dependency graph for rules.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  expression_type {
  not_expr, nested_rule, attr_expr, loc_expr,
  role_expr, time_expr
}
 

Functions

enum expression_type find_expression_type (xmlNode *expr)
 
gboolean test_ruleset (xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now)
 
gboolean test_rule (xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, crm_time_t *now)
 
gboolean test_expression (xmlNode *expr, GHashTable *node_hash, enum rsc_role_e role, crm_time_t *now)
 
void unpack_instance_attributes (xmlNode *top, xmlNode *xml_obj, const char *set_name, GHashTable *node_hash, GHashTable *hash, const char *always_first, gboolean overwrite, crm_time_t *now)
 

Enumeration Type Documentation

§ expression_type

Enumerator
not_expr 
nested_rule 
attr_expr 
loc_expr 
role_expr 
time_expr 

Definition at line 25 of file rules.h.

Function Documentation

§ find_expression_type()

enum expression_type find_expression_type ( xmlNode *  expr)

Definition at line 138 of file rules.c.

§ test_expression()

gboolean test_expression ( xmlNode *  expr,
GHashTable *  node_hash,
enum rsc_role_e  role,
crm_time_t now 
)

Definition at line 97 of file rules.c.

§ test_rule()

gboolean test_rule ( xmlNode *  rule,
GHashTable *  node_hash,
enum rsc_role_e  role,
crm_time_t now 
)

Definition at line 57 of file rules.c.

§ test_ruleset()

gboolean test_ruleset ( xmlNode *  ruleset,
GHashTable *  node_hash,
crm_time_t now 
)

Definition at line 39 of file rules.c.

§ unpack_instance_attributes()

void unpack_instance_attributes ( xmlNode *  top,
xmlNode *  xml_obj,
const char *  set_name,
GHashTable *  node_hash,
GHashTable *  hash,
const char *  always_first,
gboolean  overwrite,
crm_time_t now 
)

Definition at line 686 of file rules.c.