pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
rules_compat.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2024 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 
10 #ifndef PCMK__CRM_PENGINE_RULES_COMPAT__H
11 # define PCMK__CRM_PENGINE_RULES_COMPAT__H
12 
13 #include <glib.h>
14 #include <libxml/tree.h> // xmlNode
15 #include <crm/common/iso8601.h> // crm_time_t
16 #include <crm/pengine/pe_types.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
31 // @COMPAT sbd's configure script checks for this (as of at least 1.5.2)
33 gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role,
34  crm_time_t *now);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif // PCMK__CRM_PENGINE_RULES_COMPAT__H
struct crm_time_s crm_time_t
Definition: iso8601.h:32
rsc_role_e
Definition: roles.h:34
ISO_8601 Date handling.
gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, crm_time_t *now)
Definition: rules.c:246
Data types for cluster status.