pacemaker 2.1.5-a3f44794f94
Scalable High-Availability cluster resource manager
pcmki_rule.h
Go to the documentation of this file.
1/*
2 * Copyright 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
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
17int pcmk__check_rules(pcmk__output_t *out, xmlNodePtr input,
18 const crm_time_t *date_time, const char **rule_ids);
19
32static inline int
33pcmk__check_rule(pcmk__output_t *out, xmlNodePtr input, const crm_time_t *date,
34 const char *rule_id)
35{
36 const char *rule_ids[] = {rule_id, NULL};
37 return pcmk__check_rules(out, input, date, rule_ids);
38}
39
40#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:245
This structure contains everything that makes up a single output formatter.