This source file includes following definitions.
- pcmk__query_node_name
1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__PCMKI_PCMKI_CLUSTER_QUERIES__H
11 # define PCMK__PCMKI_PCMKI_CLUSTER_QUERIES__H
12
13 #include <glib.h>
14
15 #include <crm/crm.h>
16 #include <crm/common/output_internal.h>
17 #include <crm/common/ipc_controld.h>
18 #include <crm/common/ipc_pacemakerd.h>
19
20
21 int pcmk__list_nodes(pcmk__output_t *out, const char *node_types,
22 gboolean bash_export);
23
24
25 int pcmk__controller_status(pcmk__output_t *out, const char *node_name,
26 unsigned int message_timeout_ms);
27 int pcmk__designated_controller(pcmk__output_t *out,
28 unsigned int message_timeout_ms);
29 int pcmk__pacemakerd_status(pcmk__output_t *out, const char *ipc_name,
30 unsigned int message_timeout_ms, bool show_output,
31 enum pcmk_pacemakerd_state *state);
32 int pcmk__query_node_info(pcmk__output_t *out, uint32_t *node_id,
33 char **node_name, char **uuid, char **state,
34 bool *have_quorum, bool *is_remote, bool show_output,
35 unsigned int message_timeout_ms);
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 static inline int
57 pcmk__query_node_name(pcmk__output_t *out, uint32_t nodeid, char **node_name,
58 unsigned int message_timeout_ms)
59 {
60 return pcmk__query_node_info(out, &nodeid, node_name, NULL, NULL, NULL,
61 NULL, false, message_timeout_ms);
62 }
63
64
65 int pcmk__pacemakerd_status(pcmk__output_t *out, const char *ipc_name,
66 unsigned int message_timeout_ms, bool show_output,
67 enum pcmk_pacemakerd_state *state);
68
69 #endif