pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Enumerations | Functions
rules_internal.h File Reference
#include <regex.h>
#include <libxml/tree.h>
#include <crm/common/rules.h>
#include <crm/common/iso8601.h>
Include dependency graph for rules_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  pcmk__combine { pcmk__combine_unknown, pcmk__combine_and, pcmk__combine_or }
 

Functions

enum expression_type pcmk__condition_type (const xmlNode *condition)
 
char * pcmk__replace_submatches (const char *string, const char *match, const regmatch_t submatches[], int nmatches)
 
enum pcmk__combine pcmk__parse_combine (const char *combine)
 
int pcmk__evaluate_date_expression (const xmlNode *date_expression, const crm_time_t *now, crm_time_t *next_change)
 
int pcmk__evaluate_condition (xmlNode *expr, const pcmk_rule_input_t *rule_input, crm_time_t *next_change)
 
int pcmk__evaluate_rules (xmlNode *xml, const pcmk_rule_input_t *rule_input, crm_time_t *next_change)
 

Enumeration Type Documentation

◆ pcmk__combine

Enumerator
pcmk__combine_unknown 
pcmk__combine_and 
pcmk__combine_or 

Definition at line 19 of file rules_internal.h.

Function Documentation

◆ pcmk__condition_type()

enum expression_type pcmk__condition_type ( const xmlNode *  condition)

Definition at line 37 of file rules.c.

◆ pcmk__evaluate_condition()

int pcmk__evaluate_condition ( xmlNode *  expr,
const pcmk_rule_input_t rule_input,
crm_time_t next_change 
)

Definition at line 1334 of file rules.c.

◆ pcmk__evaluate_date_expression()

int pcmk__evaluate_date_expression ( const xmlNode *  date_expression,
const crm_time_t now,
crm_time_t next_change 
)

Definition at line 535 of file rules.c.

◆ pcmk__evaluate_rules()

int pcmk__evaluate_rules ( xmlNode *  xml,
const pcmk_rule_input_t rule_input,
crm_time_t next_change 
)

Definition at line 1487 of file rules.c.

◆ pcmk__parse_combine()

enum pcmk__combine pcmk__parse_combine ( const char *  combine)

Definition at line 903 of file rules.c.

◆ pcmk__replace_submatches()

char* pcmk__replace_submatches ( const char *  string,
const char *  match,
const regmatch_t  submatches[],
int  nmatches 
)

Definition at line 686 of file rules.c.