pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
primitive_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#ifndef PCMK__CRM_COMMON_PRIMITIVE_INTERNAL__H
11#define PCMK__CRM_COMMON_PRIMITIVE_INTERNAL__H
12
13#include <stdio.h> // NULL
14#include <stdbool.h> // bool, false
15#include <crm/common/scheduler_types.h> // pcmk_resource_t
16#include <crm/common/resources_internal.h> // pcmk__rsc_variant_primitive etc.
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
30static inline bool
31pcmk__is_primitive(const pcmk_resource_t *rsc)
32{
33 if (rsc == NULL) {
34 return false;
35 }
37}
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif // PCMK__CRM_COMMON_PRIMITIVE_INTERNAL__H
@ pcmk__rsc_variant_primitive
Primitive resource.
Type aliases needed to define scheduler objects.
enum pcmk__rsc_variant variant
pcmk__resource_private_t * priv
Definition resources.h:61