1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__PCMKI_PCMKI_SCHED_ALLOCATE__H
11 # define PCMK__PCMKI_PCMKI_SCHED_ALLOCATE__H
12
13 # include <glib.h>
14 # include <crm/common/xml.h>
15 # include <crm/pengine/status.h>
16 # include <crm/pengine/complex.h>
17 # include <crm/common/xml_internal.h>
18 # include <crm/pengine/internal.h>
19 # include <crm/common/xml.h>
20 # include <pcmki/pcmki_scheduler.h>
21
22 pe_node_t *pcmk__bundle_allocate(pe_resource_t *rsc, const pe_node_t *prefer);
23 void pcmk__bundle_create_actions(pe_resource_t *rsc);
24 bool pcmk__bundle_create_probe(pe_resource_t *rsc, pe_node_t *node);
25 void pcmk__bundle_internal_constraints(pe_resource_t *rsc);
26 void pcmk__bundle_rsc_location(pe_resource_t *rsc, pe__location_t *constraint);
27 enum pe_action_flags pcmk__bundle_action_flags(pe_action_t *action,
28 const pe_node_t *node);
29 void pcmk__bundle_expand(pe_resource_t *rsc);
30 void pcmk__bundle_add_utilization(const pe_resource_t *rsc,
31 const pe_resource_t *orig_rsc,
32 GList *all_rscs, GHashTable *utilization);
33 void pcmk__bundle_shutdown_lock(pe_resource_t *rsc);
34
35 pe_node_t *pcmk__clone_allocate(pe_resource_t *rsc, const pe_node_t *prefer);
36 void clone_create_actions(pe_resource_t *rsc);
37 void clone_internal_constraints(pe_resource_t *rsc);
38 void clone_rsc_location(pe_resource_t *rsc, pe__location_t *constraint);
39 enum pe_action_flags clone_action_flags(pe_action_t *action,
40 const pe_node_t *node);
41 void clone_expand(pe_resource_t *rsc);
42 bool clone_create_probe(pe_resource_t *rsc, pe_node_t *node);
43 extern void clone_append_meta(pe_resource_t * rsc, xmlNode * xml);
44 void pcmk__clone_add_utilization(const pe_resource_t *rsc,
45 const pe_resource_t *orig_rsc,
46 GList *all_rscs, GHashTable *utilization);
47 void pcmk__clone_shutdown_lock(pe_resource_t *rsc);
48
49 uint32_t pcmk__multi_update_actions(pe_action_t *first,
50 pe_action_t *then,
51 const pe_node_t *node, uint32_t flags,
52 uint32_t filter, uint32_t type,
53 pe_working_set_t *data_set);
54
55 void pcmk__log_transition_summary(const char *filename);
56 void clone_create_pseudo_actions(pe_resource_t *rsc, GList *children,
57 notify_data_t **start_notify,
58 notify_data_t **stop_notify);
59 #endif