pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
pcmk_rule.c File Reference
#include <crm_internal.h>
#include <libxml/xpath.h>
#include <crm/cib/internal.h>
#include <crm/common/cib.h>
#include <crm/common/iso8601.h>
#include <crm/common/xml.h>
#include <crm/pengine/internal.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_rule.c:

Go to the source code of this file.

Macros

#define XPATH_NODE_RULE   "//" PCMK_XE_RULE "[@" PCMK_XA_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.
 

Macro Definition Documentation

◆ XPATH_NODE_RULE

#define XPATH_NODE_RULE   "//" PCMK_XE_RULE "[@" PCMK_XA_ID "='%s']"

Definition at line 23 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 161 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 196 of file pcmk_rule.c.