1
2
3
4
5
6
7
8
9
10 #ifndef CRM_ATTRD__H
11 # define CRM_ATTRD__H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 # include <crm/common/ipc.h>
18
19
20 enum pcmk__node_attr_opts {
21 pcmk__node_attr_none = 0,
22 pcmk__node_attr_remote = (1 << 0),
23 pcmk__node_attr_private = (1 << 1),
24 };
25
26 #define pcmk__set_node_attr_flags(node_attr_flags, flags_to_set) do { \
27 node_attr_flags = pcmk__set_flags_as(__func__, __LINE__, \
28 LOG_TRACE, "Node attribute", crm_system_name, \
29 (node_attr_flags), (flags_to_set), #flags_to_set); \
30 } while (0)
31
32 int pcmk__node_attr_request(crm_ipc_t * ipc, char command, const char *host,
33 const char *name, const char *value,
34 const char *section, const char *set,
35 const char *dampen, const char *user_name,
36 int options);
37
38 int pcmk__node_attr_request_clear(crm_ipc_t *ipc, const char *host,
39 const char *resource, const char *operation,
40 const char *interval_spec,
41 const char *user_name, int options);
42
43 const char *pcmk__node_attr_target(const char *name);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif