pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
complex.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2019 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 PENGINE_COMPLEX__H
11 # define PENGINE_COMPLEX__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include <glib.h> // gboolean, GHashTable
18 #include <libxml/tree.h> // xmlNode
19 #include <crm/pengine/pe_types.h> // pe_node_t, pe_resource_t, etc.
20 
22 void get_meta_attributes(GHashTable * meta_hash, pe_resource_t *rsc,
23  pe_node_t *node, pe_working_set_t *data_set);
24 void get_rsc_attributes(GHashTable *meta_hash, pe_resource_t *rsc,
25  pe_node_t *node, pe_working_set_t *data_set);
26 
27 #if ENABLE_VERSIONED_ATTRS
28 void pe_get_versioned_attributes(xmlNode *meta_hash, pe_resource_t *rsc,
29  pe_node_t *node, pe_working_set_t *data_set);
30 #endif
31 
32 gboolean is_parent(pe_resource_t *child, pe_resource_t *rsc);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif
void get_meta_attributes(GHashTable *meta_hash, pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set)
Definition: complex.c:95
gboolean is_parent(pe_resource_t *child, pe_resource_t *rsc)
Definition: complex.c:745
pe_resource_t * uber_parent(pe_resource_t *rsc)
Definition: complex.c:762
resource_object_functions_t resource_class_functions[]
Definition: complex.c:18
void get_rsc_attributes(GHashTable *meta_hash, pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set)
Definition: complex.c:129
Data types for cluster status.