Go to the source code of this file.
|
void | pe_eval_nvpairs (xmlNode *top, const xmlNode *xml_obj, const char *set_name, const pe_rule_eval_data_t *rule_data, GHashTable *hash, const char *always_first, gboolean overwrite, crm_time_t *next_change) |
| Extract nvpair blocks contained by an XML element into a hash table. More...
|
|
void | pe_unpack_nvpairs (xmlNode *top, const 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. More...
|
|
◆ pe_eval_nvpairs()
void pe_eval_nvpairs |
( |
xmlNode * |
top, |
|
|
const xmlNode * |
xml_obj, |
|
|
const char * |
set_name, |
|
|
const pe_rule_eval_data_t * |
rule_data, |
|
|
GHashTable * |
hash, |
|
|
const char * |
always_first, |
|
|
gboolean |
overwrite, |
|
|
crm_time_t * |
next_change |
|
) |
| |
Extract nvpair blocks contained by an XML element into a hash table.
- Parameters
-
[in,out] | top | Ignored |
[in] | xml_obj | XML element containing blocks of nvpair elements |
[in] | set_name | If not NULL, only use blocks of this element |
[in] | rule_data | Matching parameters to use when unpacking |
[out] | hash | Where to store extracted name/value pairs |
[in] | always_first | If not NULL, process block with this ID first |
[in] | overwrite | Whether to replace existing values with same name |
[out] | next_change | If not NULL, set to when evaluation will change |
Definition at line 245 of file rules.c.
◆ pe_unpack_nvpairs()
void pe_unpack_nvpairs |
( |
xmlNode * |
top, |
|
|
const 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.
- Parameters
-
[in,out] | top | Ignored |
[in] | xml_obj | XML element containing blocks of nvpair elements |
[in] | set_name | Element name to identify nvpair blocks |
[in] | node_hash | Node attributes to use when evaluating rules |
[out] | hash | Where to store extracted name/value pairs |
[in] | always_first | If not NULL, process block with this ID first |
[in] | overwrite | Whether to replace existing values with same name |
[in] | now | Time to use when evaluating rules |
[out] | next_change | If not NULL, set to when evaluation will change |
Definition at line 282 of file rules.c.