pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
rules_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015-2019 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 typedef enum {
27 
28 GListPtr pe_unpack_alerts(xmlNode *alerts);
29 void pe_free_alert_list(GListPtr alert_list);
30 
31 crm_time_t *pe_parse_xml_duration(crm_time_t * start, xmlNode * duration_spec);
32 
34 gboolean pe_test_date_expression(xmlNode * time_expr, crm_time_t * now);
35 gboolean pe_cron_range_satisfied(crm_time_t * now, xmlNode * cron_spec);
36 gboolean pe_test_attr_expression(xmlNode * expr, GHashTable * hash, crm_time_t * now);
37 gboolean pe_test_attr_expression_full(xmlNode * expr, GHashTable * hash, crm_time_t * now, pe_match_data_t * match_data);
38 gboolean pe_test_role_expression(xmlNode * expr, enum rsc_role_e role, crm_time_t * now);
39 
40 #endif
pe_eval_date_result_t pe_eval_date_expression(xmlNode *time_expr, crm_time_t *now)
Definition: rules.c:595
void pe_free_alert_list(GListPtr alert_list)
Definition: rules_alerts.c:244
struct crm_time_s crm_time_t
Definition: iso8601.h:32
gboolean pe_test_role_expression(xmlNode *expr, enum rsc_role_e role, crm_time_t *now)
Definition: rules.c:218
GListPtr pe_unpack_alerts(xmlNode *alerts)
Definition: rules_alerts.c:175
gboolean pe_test_date_expression(xmlNode *time_expr, crm_time_t *now)
Definition: rules.c:573
crm_time_t * pe_parse_xml_duration(crm_time_t *start, xmlNode *duration_spec)
Definition: rules.c:553
gboolean pe_test_attr_expression(xmlNode *expr, GHashTable *hash, crm_time_t *now)
Definition: rules.c:259
ISO_8601 Date handling.
gboolean pe_test_attr_expression_full(xmlNode *expr, GHashTable *hash, crm_time_t *now, pe_match_data_t *match_data)
Definition: rules.c:265
rsc_role_e
Definition: common.h:86
gboolean pe_cron_range_satisfied(crm_time_t *now, xmlNode *cron_spec)
Definition: rules.c:505
pe_eval_date_result_t
GList * GListPtr
Definition: crm.h:192