pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
include
crm
common
group_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright 2004-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_GROUP_INTERNAL__H
11
#define PCMK__CRM_COMMON_GROUP_INTERNAL__H
12
13
#include <stdio.h>
// NULL
14
#include <stdbool.h>
// bool
15
#include <
crm/common/scheduler_types.h
>
// pcmk_resource_t
16
#include <
crm/common/resources_internal.h
>
// pcmk__rsc_variant_group etc.
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
// Group resource flags (used in variant data)
23
enum
pcmk__group_flags
{
24
pcmk__group_ordered
= (1 << 0),
// Members start sequentially
25
pcmk__group_colocated
= (1 << 1),
// Members must be on same node
26
};
27
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 // PCMK__CRM_COMMON_GROUP_INTERNAL__H
scheduler_types.h
Type aliases needed to define scheduler objects.
resources_internal.h
pcmk__rsc_variant_group
Group resource.
Definition:
resources_internal.h:56
pcmk__resource_private::variant
enum pcmk__rsc_variant variant
Definition:
resources_internal.h:321
pcmk__group_flags
pcmk__group_flags
Definition:
group_internal.h:23
pcmk__resource::priv
pcmk__resource_private_t * priv
Definition:
resources.h:61
pcmk__group_colocated
Definition:
group_internal.h:25
pcmk__resource
Definition:
resources.h:56
pcmk__group_ordered
Definition:
group_internal.h:24
Generated on Wed Jan 8 2025 16:55:39 for pacemaker by
1.8.14