1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__FENCING_FENCING_PRIVATE__H
11 #define PCMK__FENCING_FENCING_PRIVATE__H
12
13 #include <stdbool.h>
14
15 #include <glib.h>
16
17 #include <crm/stonith-ng.h>
18 #include <crm/fencing/internal.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 G_GNUC_INTERNAL
25 int stonith__execute(stonith_action_t *action);
26
27
28
29 G_GNUC_INTERNAL
30 int stonith__list_rhcs_agents(stonith_key_value_t **devices);
31
32 G_GNUC_INTERNAL
33 int stonith__rhcs_metadata(const char *agent, int timeout, char **output);
34
35 G_GNUC_INTERNAL
36 bool stonith__agent_is_rhcs(const char *agent);
37
38 G_GNUC_INTERNAL
39 int stonith__rhcs_validate(stonith_t *st, int call_options, const char *target,
40 const char *agent, GHashTable *params,
41 const char *host_arg, int timeout,
42 char **output, char **error_output);
43
44 #ifdef HAVE_STONITH_STONITH_H
45
46
47 G_GNUC_INTERNAL
48 int stonith__list_lha_agents(stonith_key_value_t **devices);
49
50 G_GNUC_INTERNAL
51 int stonith__lha_metadata(const char *agent, int timeout, char **output);
52
53 G_GNUC_INTERNAL
54 bool stonith__agent_is_lha(const char *agent);
55
56 G_GNUC_INTERNAL
57 int stonith__lha_validate(stonith_t *st, int call_options, const char *target,
58 const char *agent, GHashTable *params,
59 int timeout, char **output, char **error_output);
60 #endif
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif