pacemaker  2.1.6-802a72226b
Scalable High-Availability cluster resource manager
rules_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015-2022 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 #ifndef RULES_INTERNAL_H
10 #define RULES_INTERNAL_H
11 
12 #include <glib.h>
13 #include <libxml/tree.h>
14 
15 #include <crm/common/iso8601.h>
16 #include <crm/pengine/common.h>
17 #include <crm/pengine/rules.h>
18 
19 GList *pe_unpack_alerts(const xmlNode *alerts);
20 void pe_free_alert_list(GList *alert_list);
21 
22 gboolean pe__eval_attr_expr(const xmlNode *expr,
23  const pe_rule_eval_data_t *rule_data);
24 int pe__eval_date_expr(const xmlNode *expr,
25  const pe_rule_eval_data_t *rule_data,
26  crm_time_t *next_change);
27 gboolean pe__eval_op_expr(const xmlNode *expr,
28  const pe_rule_eval_data_t *rule_data);
29 gboolean pe__eval_role_expr(const xmlNode *expr,
30  const pe_rule_eval_data_t *rule_data);
31 gboolean pe__eval_rsc_expr(const xmlNode *expr,
32  const pe_rule_eval_data_t *rule_data);
33 
34 int pe_cron_range_satisfied(const crm_time_t *now, const xmlNode *cron_spec);
35 
36 #endif
int pe__eval_date_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data, crm_time_t *next_change)
Definition: rules.c:1033
GList * pe_unpack_alerts(const xmlNode *alerts)
Definition: rules_alerts.c:213
struct crm_time_s crm_time_t
Definition: iso8601.h:32
void pe_free_alert_list(GList *alert_list)
Definition: rules_alerts.c:294
int pe_cron_range_satisfied(const crm_time_t *now, const xmlNode *cron_spec)
Definition: rules.c:239
gboolean pe__eval_op_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data)
Definition: rules.c:1116
ISO_8601 Date handling.
gboolean pe__eval_role_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data)
Definition: rules.c:1158
gboolean pe__eval_rsc_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data)
Definition: rules.c:1201
gboolean pe__eval_attr_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data)
Definition: rules.c:969