pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
rules.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__H
11 # define PCMK__CRM_PENGINE_RULES__H
12 
13 # include <glib.h>
14 # include <crm/crm.h>
15 # include <crm/common/iso8601.h>
16 # include <crm/common/scheduler.h>
17 # include <crm/pengine/common.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 void pe_eval_nvpairs(xmlNode *top, const xmlNode *xml_obj, const char *set_name,
24  const pe_rule_eval_data_t *rule_data, GHashTable *hash,
25  const char *always_first, gboolean overwrite,
26  crm_time_t *next_change);
27 
28 void pe_unpack_nvpairs(xmlNode *top, const xmlNode *xml_obj,
29  const char *set_name, GHashTable *node_hash,
30  GHashTable *hash, const char *always_first,
31  gboolean overwrite, crm_time_t *now,
32  crm_time_t *next_change);
33 
34 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
36 #endif
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif
A dumping ground.
Deprecated Pacemaker rule API.
struct crm_time_s crm_time_t
Definition: iso8601.h:32
void pe_unpack_nvpairs(xmlNode *top, const xmlNode *xml_obj, const char *set_name, GHashTable *node_hash, GHashTable *hash, const char *always_first, gboolean overwrite, crm_time_t *now, crm_time_t *next_change)
Extract nvpair blocks contained by an XML element into a hash table.
Definition: rules.c:282
Scheduler API.
void pe_eval_nvpairs(xmlNode *top, const xmlNode *xml_obj, const char *set_name, const pe_rule_eval_data_t *rule_data, GHashTable *hash, const char *always_first, gboolean overwrite, crm_time_t *next_change)
Extract nvpair blocks contained by an XML element into a hash table.
Definition: rules.c:245
ISO_8601 Date handling.