pacemaker
3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
include
crm
common
location_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_LOCATION_INTERNAL__H
11
#define PCMK__CRM_COMMON_LOCATION_INTERNAL__H
12
13
#include <glib.h>
// gpointer, GList
14
15
#include <
crm/common/nodes_internal.h
>
// enum pcmk__probe_mode
16
#include <
crm/common/resources.h
>
// enum rsc_role_e
17
#include <
crm/common/scheduler_types.h
>
// pcmk_resource_t
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
24
typedef
struct
{
25
char
*
id
;
// XML ID of location constraint
26
pcmk_resource_t
*
rsc
;
// Resource with location preference
27
enum
rsc_role_e
role_filter
;
// Limit to instances with this role
28
enum
pcmk__probe_mode
probe_mode
;
// How to probe resource on node
29
GList *
nodes
;
// Copies of affected nodes, with score
30
}
pcmk__location_t
;
31
32
void
pcmk__free_location
(gpointer user_data);
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
#endif
// PCMK__CRM_COMMON_LOCATION_INTERNAL__H
pcmk__free_location
void pcmk__free_location(gpointer user_data)
Definition
location.c:24
nodes_internal.h
pcmk__probe_mode
pcmk__probe_mode
Definition
nodes_internal.h:80
resources.h
Scheduler API for resources.
rsc_role_e
rsc_role_e
Definition
roles.h:34
scheduler_types.h
Type aliases needed to define scheduler objects.
pcmk__location_t
Location constraint object.
Definition
location_internal.h:24
pcmk__location_t::probe_mode
enum pcmk__probe_mode probe_mode
Definition
location_internal.h:28
pcmk__location_t::nodes
GList * nodes
Definition
location_internal.h:29
pcmk__location_t::role_filter
enum rsc_role_e role_filter
Definition
location_internal.h:27
pcmk__location_t::rsc
pcmk_resource_t * rsc
Definition
location_internal.h:26
pcmk__location_t::id
char * id
Definition
location_internal.h:25
pcmk__resource
Definition
resources.h:56
Generated on Thu Aug 7 2025 12:04:47 for pacemaker by
1.12.0