1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_PENGINE_COMPLEX__H
11 # define PCMK__CRM_PENGINE_COMPLEX__H
12
13 #include <glib.h>
14 #include <libxml/tree.h>
15 #include <crm/pengine/pe_types.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 extern resource_object_functions_t resource_class_functions[];
22
23 GHashTable *pe_rsc_params(pe_resource_t *rsc, pe_node_t *node,
24 pe_working_set_t *data_set);
25 void get_meta_attributes(GHashTable * meta_hash, pe_resource_t *rsc,
26 pe_node_t *node, pe_working_set_t *data_set);
27 void get_rsc_attributes(GHashTable *meta_hash, pe_resource_t *rsc,
28 pe_node_t *node, pe_working_set_t *data_set);
29
30 #if ENABLE_VERSIONED_ATTRS
31 void pe_get_versioned_attributes(xmlNode *meta_hash, pe_resource_t *rsc,
32 pe_node_t *node, pe_working_set_t *data_set);
33 #endif
34
35 gboolean is_parent(pe_resource_t *child, pe_resource_t *rsc);
36 pe_resource_t *uber_parent(pe_resource_t *rsc);
37
38 #ifdef __cplusplus
39 }
40 #endif
41
42 #endif