10 #ifndef PCMK__CRM_PENGINE_RULES__H 11 # define PCMK__CRM_PENGINE_RULES__H 39 gboolean
pe_test_rule(xmlNode *rule, GHashTable *node_hash,
48 void pe_eval_nvpairs(xmlNode *top, xmlNode *xml_obj,
const char *set_name,
50 const char *always_first, gboolean overwrite,
54 GHashTable *node_hash, GHashTable *hash,
55 const char *always_first, gboolean overwrite,
58 #if ENABLE_VERSIONED_ATTRS 59 void pe_eval_versioned_attributes(xmlNode *top, xmlNode *xml_obj,
63 GHashTable *pe_unpack_versioned_parameters(xmlNode *versioned_params,
const char *ra_version);
75 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
Deprecated Pacemaker rule API.
gboolean pe_eval_rules(xmlNode *ruleset, pe_rule_eval_data_t *rule_data, crm_time_t *next_change)
void pe_unpack_nvpairs(xmlNode *top, xmlNode *xml_obj, const char *set_name, GHashTable *node_hash, GHashTable *hash, const char *always_first, gboolean overwrite, crm_time_t *now, crm_time_t *next_change)
Extract nvpair blocks contained by an XML element into a hash table.
void pe_eval_nvpairs(xmlNode *top, xmlNode *xml_obj, const char *set_name, pe_rule_eval_data_t *rule_data, GHashTable *hash, const char *always_first, gboolean overwrite, crm_time_t *next_change)
struct crm_time_s crm_time_t
gboolean pe_test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, crm_time_t *now, crm_time_t *next_change, pe_match_data_t *match_data)
gboolean pe_eval_expr(xmlNode *rule, pe_rule_eval_data_t *rule_data, crm_time_t *next_change)
gboolean pe_test_expression(xmlNode *expr, GHashTable *node_hash, enum rsc_role_e role, crm_time_t *now, crm_time_t *next_change, pe_match_data_t *match_data)
Evaluate one rule subelement (pass/fail)
enum expression_type find_expression_type(xmlNode *expr)
gboolean pe_eval_subexpr(xmlNode *expr, pe_rule_eval_data_t *rule_data, crm_time_t *next_change)
char * pe_expand_re_matches(const char *string, pe_re_match_data_t *match_data)
gboolean pe_evaluate_rules(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now, crm_time_t *next_change)
Evaluate any rules contained by given XML element.
rsc_role_e
Possible roles that a resource can be in.