pacemaker 2.1.5-a3f44794f94
Scalable High-Availability cluster resource manager
complex.h
Go to the documentation of this file.
1/*
2 * Copyright 2004-2022 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> // pe_node_t, pe_resource_t, etc.
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
22
23GHashTable *pe_rsc_params(pe_resource_t *rsc, const pe_node_t *node,
25void get_meta_attributes(GHashTable * meta_hash, pe_resource_t *rsc,
27void get_rsc_attributes(GHashTable *meta_hash, const pe_resource_t *rsc,
28 const pe_node_t *node, pe_working_set_t *data_set);
29
30gboolean is_parent(pe_resource_t *child, pe_resource_t *rsc);
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif
pe_resource_t * uber_parent(pe_resource_t *rsc)
Definition: complex.c:912
void get_rsc_attributes(GHashTable *meta_hash, const pe_resource_t *rsc, const pe_node_t *node, pe_working_set_t *data_set)
Definition: complex.c:192
GHashTable * pe_rsc_params(pe_resource_t *rsc, const pe_node_t *node, pe_working_set_t *data_set)
Get a table of resource parameters.
Definition: complex.c:429
void get_meta_attributes(GHashTable *meta_hash, pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set)
Definition: complex.c:142
gboolean is_parent(pe_resource_t *child, pe_resource_t *rsc)
Definition: complex.c:895
resource_object_functions_t resource_class_functions[]
Definition: complex.c:21
pe_working_set_t * data_set
Data types for cluster status.