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 pcmk_rsc_methods_t resource_class_functions[];
22
23 GHashTable *pe_rsc_params(pcmk_resource_t *rsc, const pcmk_node_t *node,
24 pcmk_scheduler_t *scheduler);
25 void get_meta_attributes(GHashTable * meta_hash, pcmk_resource_t *rsc,
26 pcmk_node_t *node, pcmk_scheduler_t *scheduler);
27 void get_rsc_attributes(GHashTable *meta_hash, const pcmk_resource_t *rsc,
28 const pcmk_node_t *node, pcmk_scheduler_t *scheduler);
29
30 gboolean is_parent(pcmk_resource_t *child, pcmk_resource_t *rsc);
31 pcmk_resource_t *uber_parent(pcmk_resource_t *rsc);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif