1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__PCMKI_PCMKI_SCHED_UTILS__H
11 # define PCMK__PCMKI_PCMKI_SCHED_UTILS__H
12
13 #include <stdbool.h>
14 #include <glib.h>
15 #include <crm/lrmd.h>
16 #include <crm/cib.h>
17 #include <crm/pengine/pe_types.h>
18 #include <crm/common/xml_internal.h>
19 #include <crm/pengine/internal.h>
20 #include <pcmki/pcmki_scheduler.h>
21 #include <pcmki/pcmki_transition.h>
22 #include <pacemaker.h>
23
24
25 pcmk__colocation_t *invert_constraint(pcmk__colocation_t *constraint);
26
27 pe__location_t *copy_constraint(pe__location_t *constraint);
28
29 GList *pcmk__copy_node_list(const GList *list, bool reset);
30
31 pe_resource_t *find_compatible_child(pe_resource_t *local_child,
32 pe_resource_t *rsc, enum rsc_role_e filter,
33 gboolean current,
34 pe_working_set_t *data_set);
35 pe_resource_t *find_compatible_child_by_node(pe_resource_t * local_child, pe_node_t * local_node, pe_resource_t * rsc,
36 enum rsc_role_e filter, gboolean current);
37 gboolean is_child_compatible(pe_resource_t *child_rsc, pe_node_t * local_node, enum rsc_role_e filter, gboolean current);
38 enum pe_action_flags summary_action_flags(pe_action_t * action, GList *children, pe_node_t * node);
39 enum action_tasks clone_child_action(pe_action_t * action);
40 int copies_per_node(pe_resource_t * rsc);
41
42 xmlNode *pcmk__create_history_xml(xmlNode *parent, lrmd_event_data_t *event,
43 const char *caller_version, int target_rc,
44 const char *node, const char *origin);
45
46 # define LOAD_STOPPED "load_stopped"
47
48 #endif