1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_COMMON_AGENTS__H
11 # define PCMK__CRM_COMMON_AGENTS__H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17
18
19
20
21
22
23 #include <stdint.h>
24 #include <stdbool.h>
25
26
27
28
29 #define PCMK_STONITH_ACTION_LIMIT "pcmk_action_limit"
30 #define PCMK_STONITH_DELAY_BASE "pcmk_delay_base"
31 #define PCMK_STONITH_DELAY_MAX "pcmk_delay_max"
32 #define PCMK_STONITH_HOST_ARGUMENT "pcmk_host_argument"
33 #define PCMK_STONITH_HOST_CHECK "pcmk_host_check"
34 #define PCMK_STONITH_HOST_LIST "pcmk_host_list"
35 #define PCMK_STONITH_HOST_MAP "pcmk_host_map"
36 #define PCMK_STONITH_PROVIDES "provides"
37 #define PCMK_STONITH_STONITH_TIMEOUT "stonith-timeout"
38
39
40 #define PCMK_OCF_MAJOR_VERSION "1"
41 #define PCMK_OCF_MINOR_VERSION "1"
42 #define PCMK_OCF_VERSION PCMK_OCF_MAJOR_VERSION "." PCMK_OCF_MINOR_VERSION
43
44
45 enum pcmk_ra_caps {
46 pcmk_ra_cap_none = 0,
47 pcmk_ra_cap_provider = (1 << 0),
48 pcmk_ra_cap_status = (1 << 1),
49 pcmk_ra_cap_params = (1 << 2),
50 pcmk_ra_cap_unique = (1 << 3),
51 pcmk_ra_cap_promotable = (1 << 4),
52 pcmk_ra_cap_stdin = (1 << 5),
53 pcmk_ra_cap_fence_params = (1 << 6),
54 };
55
56 uint32_t pcmk_get_ra_caps(const char *standard);
57 char *crm_generate_ra_key(const char *standard, const char *provider,
58 const char *type);
59 int crm_parse_agent_spec(const char *spec, char **standard, char **provider,
60 char **type);
61 bool pcmk_stonith_param(const char *param);
62
63 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
64 #include <crm/common/agents_compat.h>
65 #endif
66
67 #ifdef __cplusplus
68 }
69 #endif
70
71 #endif