This source file includes following definitions.
- pcmk__is_primitive
1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_COMMON_PRIMITIVE_INTERNAL__H
11 #define PCMK__CRM_COMMON_PRIMITIVE_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
24
25
26
27
28
29
30 static inline bool
31 pcmk__is_primitive(const pcmk_resource_t *rsc)
32 {
33 if (rsc == NULL) {
34 return false;
35 }
36 return rsc->priv->variant == pcmk__rsc_variant_primitive;
37 }
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif