pacemaker  2.1.6-802a72226b
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_rule.c File Reference
#include <crm_internal.h>
#include <crm/cib/internal.h>
#include <crm/common/cib.h>
#include <crm/common/iso8601.h>
#include <crm/msg_xml.h>
#include <crm/pengine/rules_internal.h>
#include <pacemaker-internal.h>
Include dependency graph for pcmk_rule.c:

Go to the source code of this file.

Macros

#define XPATH_NODE_RULE   "//" XML_TAG_RULE "[@" XML_ATTR_ID "='%s']"
 

Functions

int pcmk__check_rules (pcmk__output_t *out, xmlNodePtr input, const crm_time_t *date, const char **rule_ids)
 
int pcmk_check_rules (xmlNodePtr *xml, xmlNodePtr input, const crm_time_t *date, const char **rule_ids)
 Check whether each rule in a list is in effect. More...
 

Macro Definition Documentation

◆ XPATH_NODE_RULE

#define XPATH_NODE_RULE   "//" XML_TAG_RULE "[@" XML_ATTR_ID "='%s']"

Definition at line 108 of file pcmk_rule.c.

Function Documentation

◆ pcmk__check_rules()

int pcmk__check_rules ( pcmk__output_t out,
xmlNodePtr  input,
const crm_time_t date,
const char **  rule_ids 
)

Definition at line 244 of file pcmk_rule.c.

◆ pcmk_check_rules()

int pcmk_check_rules ( xmlNodePtr *  xml,
xmlNodePtr  input,
const crm_time_t date,
const char **  rule_ids 
)

Check whether each rule in a list is in effect.

Parameters
[in,out]xmlThe destination for the result, as an XML tree
[in]inputThe CIB XML to check (if NULL, use current CIB)
[in]dateCheck whether the rule is in effect at this date and time (if NULL, use current date and time)
[in]rule_idsThe IDs of the rules to check, as a NULL- terminated list.
Returns
Standard Pacemaker return code

Definition at line 279 of file pcmk_rule.c.