This source file includes following definitions.
- pcmk__is_group
1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_COMMON_GROUP_INTERNAL__H
11 #define PCMK__CRM_COMMON_GROUP_INTERNAL__H
12
13 #include <stdbool.h>
14 #include <crm/common/scheduler_types.h>
15 #include <crm/common/resources.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21
22 enum pcmk__group_flags {
23 pcmk__group_ordered = (1 << 0),
24 pcmk__group_colocated = (1 << 1),
25 };
26
27
28
29
30
31
32
33
34
35
36
37 static inline bool
38 pcmk__is_group(const pcmk_resource_t *rsc)
39 {
40 return (rsc != NULL) && (rsc->variant == pcmk_rsc_variant_group);
41 }
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif