1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__PCMKI_PCMKI_SCHEDULER__H
11 # define PCMK__PCMKI_PCMKI_SCHEDULER__H
12
13 # include <glib.h>
14 # include <crm/crm.h>
15 # include <crm/common/iso8601.h>
16 # include <crm/pengine/rules.h>
17 # include <crm/pengine/common.h>
18 # include <crm/pengine/status.h>
19
20 # include <crm/pengine/complex.h>
21
22 typedef struct {
23 const char *id;
24 const char *node_attribute;
25 pe_resource_t *dependent;
26 pe_resource_t *primary;
27
28 int dependent_role;
29 int primary_role;
30
31 int score;
32 bool influence;
33 } pcmk__colocation_t;
34
35 void pcmk__unpack_constraints(pe_working_set_t *data_set);
36
37 void pcmk__schedule_actions(xmlNode *cib, unsigned long long flags,
38 pe_working_set_t *data_set);
39
40 #endif