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 <stdio.h>
14 #include <stdbool.h>
15 #include <crm/common/scheduler_types.h>
16 #include <crm/common/resources_internal.h>
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22
23 enum pcmk__group_flags {
24 pcmk__group_ordered = (1 << 0),
25 pcmk__group_colocated = (1 << 1),
26 };
27
28
29
30
31
32
33
34
35
36
37
38 static inline bool
39 pcmk__is_group(const pcmk_resource_t *rsc)
40 {
41 return (rsc != NULL) && (rsc->priv->variant == pcmk__rsc_variant_group);
42 }
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif