This source file includes following definitions.
- pcmk__list_cluster_options
- pcmk_list_cluster_options
- pcmk__list_fencing_params
- pcmk_list_fencing_params
- pcmk__list_primitive_meta
- pcmk_list_primitive_meta
1
2
3
4
5
6
7
8
9
10 #include <crm_internal.h>
11
12 #include <libxml/tree.h>
13
14 #include <pacemaker.h>
15 #include <pacemaker-internal.h>
16
17
18
19
20
21
22
23
24
25
26
27
28
29 int
30 pcmk__list_cluster_options(pcmk__output_t *out, bool all)
31 {
32 const char *name = "cluster-options";
33 const char *desc_short = "Pacemaker cluster options";
34 const char *desc_long = NULL;
35
36
37 desc_long = "Also known as properties, these are options that affect "
38 "behavior across the entire cluster. They are configured "
39 "within cluster_property_set elements inside the crm_config "
40 "subsection of the CIB configuration section.";
41
42 return pcmk__output_cluster_options(out, name, desc_short, desc_long,
43 pcmk__opt_none, all);
44 }
45
46
47 int
48 pcmk_list_cluster_options(xmlNode **xml, bool all)
49 {
50 pcmk__output_t *out = NULL;
51 int rc = pcmk_rc_ok;
52
53 rc = pcmk__xml_output_new(&out, xml);
54 if (rc != pcmk_rc_ok) {
55 return rc;
56 }
57
58 pcmk__register_lib_messages(out);
59
60 rc = pcmk__list_cluster_options(out, all);
61
62 pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml);
63 return rc;
64 }
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80 int
81 pcmk__list_fencing_params(pcmk__output_t *out, bool all)
82 {
83 const char *name = "fence-attributes";
84 const char *desc_short = "Fencing resource common parameters";
85 const char *desc_long = NULL;
86
87 desc_long = "Special parameters that are available for all fencing "
88 "resources, regardless of type. They are processed by "
89 "Pacemaker, rather than by the fence agent or the fencing "
90 "library.";
91
92 return pcmk__output_fencing_params(out, name, desc_short, desc_long, all);
93 }
94
95
96 int
97 pcmk_list_fencing_params(xmlNode **xml, bool all)
98 {
99 pcmk__output_t *out = NULL;
100 int rc = pcmk_rc_ok;
101
102 rc = pcmk__xml_output_new(&out, xml);
103 if (rc != pcmk_rc_ok) {
104 return rc;
105 }
106
107 pcmk__register_lib_messages(out);
108
109 rc = pcmk__list_fencing_params(out, all);
110
111 pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml);
112 return rc;
113 }
114
115
116
117
118
119
120
121
122
123
124
125 int
126 pcmk__list_primitive_meta(pcmk__output_t *out, bool all)
127 {
128 const char *name = "primitive-meta";
129 const char *desc_short = "Primitive meta-attributes";
130 const char *desc_long = "Meta-attributes applicable to primitive resources";
131
132 return pcmk__output_primitive_meta(out, name, desc_short, desc_long, all);
133 }
134
135
136 int
137 pcmk_list_primitive_meta(xmlNode **xml, bool all)
138 {
139 pcmk__output_t *out = NULL;
140 int rc = pcmk_rc_ok;
141
142 rc = pcmk__xml_output_new(&out, xml);
143 if (rc != pcmk_rc_ok) {
144 return rc;
145 }
146
147 pcmk__register_lib_messages(out);
148
149 rc = pcmk__list_primitive_meta(out, all);
150
151 pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml);
152 return rc;
153 }