pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
pcmki_rule.h
Go to the documentation of this file.
1/*
2 * Copyright 2022-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__PCMKI_PCMKI_RULE__H
11#define PCMK__PCMKI_PCMKI_RULE__H
12
13#include <crm/crm.h>
14#include <crm/common/iso8601.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21int pcmk__check_rules(pcmk__output_t *out, xmlNodePtr input,
22 const crm_time_t *date_time, const char **rule_ids);
23
36static inline int
37pcmk__check_rule(pcmk__output_t *out, xmlNodePtr input, const crm_time_t *date,
38 const char *rule_id)
39{
40 const char *rule_ids[] = {rule_id, NULL};
41 return pcmk__check_rules(out, input, date, rule_ids);
42}
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif // PCMK__PCMKI_PCMKI_RULE__H
A dumping ground.
ISO_8601 Date handling.
struct crm_time_s crm_time_t
Definition iso8601.h:32
xmlNode * input
Formatted output for pacemaker tools.
int pcmk__check_rules(pcmk__output_t *out, xmlNodePtr input, const crm_time_t *date_time, const char **rule_ids)
Definition pcmk_rule.c:161
This structure contains everything that makes up a single output formatter.