pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
complex.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_PENGINE_COMPLEX__H
11 # define PCMK__CRM_PENGINE_COMPLEX__H
12 
13 #include <glib.h> // gboolean, GHashTable
14 #include <libxml/tree.h> // xmlNode
15 #include <crm/pengine/pe_types.h> // pcmk_node_t, pcmk_resource_t, etc.
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 GHashTable *pe_rsc_params(pcmk_resource_t *rsc, const pcmk_node_t *node,
23 void get_meta_attributes(GHashTable * meta_hash, pcmk_resource_t *rsc,
25 void get_rsc_attributes(GHashTable *meta_hash, const pcmk_resource_t *rsc,
26  const pcmk_node_t *node, pcmk_scheduler_t *scheduler);
27 
28 gboolean is_parent(pcmk_resource_t *child, pcmk_resource_t *rsc);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif
void get_meta_attributes(GHashTable *meta_hash, pcmk_resource_t *rsc, pcmk_node_t *node, pcmk_scheduler_t *scheduler)
Definition: complex.c:175
pcmk_resource_t * uber_parent(pcmk_resource_t *rsc)
Definition: complex.c:1017
void get_rsc_attributes(GHashTable *meta_hash, const pcmk_resource_t *rsc, const pcmk_node_t *node, pcmk_scheduler_t *scheduler)
Get final values of a resource&#39;s instance attributes.
Definition: complex.c:236
pcmk_scheduler_t * scheduler
gboolean is_parent(pcmk_resource_t *child, pcmk_resource_t *rsc)
Definition: complex.c:1000
Data types for cluster status.
GHashTable * pe_rsc_params(pcmk_resource_t *rsc, const pcmk_node_t *node, pcmk_scheduler_t *scheduler)
Get a table of resource parameters.
Definition: complex.c:476