1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__ATTRD_INTERNAL__H
11 # define PCMK__ATTRD_INTERNAL__H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17
18 enum pcmk__node_attr_opts {
19 pcmk__node_attr_none = 0,
20 pcmk__node_attr_remote = (1 << 0),
21 pcmk__node_attr_private = (1 << 1),
22 pcmk__node_attr_pattern = (1 << 2),
23 pcmk__node_attr_value = (1 << 3),
24 pcmk__node_attr_delay = (1 << 4),
25 pcmk__node_attr_perm = (1 << 5),
26 };
27
28 #define pcmk__set_node_attr_flags(node_attr_flags, flags_to_set) do { \
29 node_attr_flags = pcmk__set_flags_as(__func__, __LINE__, \
30 LOG_TRACE, "Node attribute", crm_system_name, \
31 (node_attr_flags), (flags_to_set), #flags_to_set); \
32 } while (0)
33
34 #define pcmk__clear_node_attr_flags(node_attr_flags, flags_to_clear) do { \
35 node_attr_flags = pcmk__clear_flags_as(__func__, __LINE__, \
36 LOG_TRACE, "Node attribute", crm_system_name, \
37 (node_attr_flags), (flags_to_clear), #flags_to_clear); \
38 } while (0)
39
40 const char *pcmk__node_attr_target(const char *name);
41
42 #ifdef __cplusplus
43 }
44 #endif
45
46 #endif