pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
pcmki_status.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 #ifndef PCMK__PCMKI_PCMKI_STATUS__H
10 #define PCMK__PCMKI_PCMKI_STATUS__H
11 
12 #include <stdbool.h>
13 #include <stdint.h>
14 
15 #include <crm/cib/cib_types.h>
16 #include <crm/common/scheduler.h>
19 #include <pcmki/pcmki_fence.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
26  stonith_t *stonith, cib_t *cib,
27  xmlNode *current_cib,
28  enum pcmk_pacemakerd_state pcmkd_state,
29  enum pcmk__fence_history fence_history,
30  uint32_t show, uint32_t show_opts,
31  const char *only_node, const char *only_rsc,
32  const char *neg_location_prefix);
33 
34 int pcmk__status(pcmk__output_t *out, cib_t *cib,
35  enum pcmk__fence_history fence_history, uint32_t show,
36  uint32_t show_opts, const char *only_node,
37  const char *only_rsc, const char *neg_location_prefix,
38  unsigned int timeout_ms);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif // PCMK__PCMKI_PCMKI_STATUS__H
int pcmk__output_cluster_status(pcmk_scheduler_t *scheduler, stonith_t *stonith, cib_t *cib, xmlNode *current_cib, enum pcmk_pacemakerd_state pcmkd_state, enum pcmk__fence_history fence_history, uint32_t show, uint32_t show_opts, const char *only_node, const char *only_rsc, const char *neg_location_prefix)
Definition: pcmk_status.c:69
pcmk__fence_history
Control how much of the fencing history is output.
Definition: pcmki_fence.h:22
Data types for Cluster Information Base access.
Scheduler API.
Formatted output for pacemaker tools.
IPC commands for Pacemakerd.
pcmk_pacemakerd_state
pcmk_scheduler_t * scheduler
This structure contains everything that makes up a single output formatter.
int pcmk__status(pcmk__output_t *out, cib_t *cib, enum pcmk__fence_history fence_history, uint32_t show, uint32_t show_opts, const char *only_node, const char *only_rsc, const char *neg_location_prefix, unsigned int timeout_ms)
Definition: pcmk_status.c:206