1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_PENGINE_STATUS__H
11 # define PCMK__CRM_PENGINE_STATUS__H
12
13 # include <glib.h>
14 # include <stdbool.h>
15 # include <crm/common/util.h>
16 # include <crm/common/iso8601.h>
17 # include <crm/pengine/common.h>
18 # include <crm/pengine/pe_types.h>
19 # include <crm/pengine/complex.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25
26
27
28
29
30
31 const char *rsc_printable_id(const pcmk_resource_t *rsc);
32
33
34 gboolean cluster_status(pcmk_scheduler_t *scheduler);
35
36
37 pcmk_scheduler_t *pe_new_working_set(void);
38
39
40 void pe_free_working_set(pcmk_scheduler_t *scheduler);
41
42 void set_working_set_defaults(pcmk_scheduler_t *scheduler);
43 void cleanup_calculations(pcmk_scheduler_t *scheduler);
44
45
46 void pe_reset_working_set(pcmk_scheduler_t *scheduler);
47
48 pcmk_resource_t *pe_find_resource(GList *rsc_list, const char *id);
49 pcmk_resource_t *pe_find_resource_with_flags(GList *rsc_list, const char *id,
50 enum pe_find flags);
51 pcmk_node_t *pe_find_node_id(const GList *node_list, const char *id);
52 pcmk_node_t *pe_find_node_any(const GList *node_list, const char *id,
53 const char *node_name);
54 GList *find_operations(const char *rsc, const char *node, gboolean active_filter,
55 pcmk_scheduler_t *scheduler);
56 void calculate_active_ops(const GList *sorted_op_list, int *start_index,
57 int *stop_index);
58 int pe_bundle_replicas(const pcmk_resource_t *rsc);
59
60 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
61 #include <crm/pengine/status_compat.h>
62 #endif
63
64 #ifdef __cplusplus
65 }
66 #endif
67
68 #endif