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/pe_types.h>
18 # include <crm/pengine/complex.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24
25
26
27
28
29
30 const char *rsc_printable_id(const pcmk_resource_t *rsc);
31
32
33 gboolean cluster_status(pcmk_scheduler_t *scheduler);
34
35 pcmk_resource_t *pe_find_resource(GList *rsc_list, const char *id);
36 pcmk_resource_t *pe_find_resource_with_flags(GList *rsc_list, const char *id,
37 enum pe_find flags);
38 pcmk_node_t *pe_find_node_id(const GList *node_list, const char *id);
39 pcmk_node_t *pe_find_node_any(const GList *node_list, const char *id,
40 const char *node_name);
41 GList *find_operations(const char *rsc, const char *node, gboolean active_filter,
42 pcmk_scheduler_t *scheduler);
43 void calculate_active_ops(const GList *sorted_op_list, int *start_index,
44 int *stop_index);
45 int pe_bundle_replicas(const pcmk_resource_t *rsc);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
52 #include <crm/pengine/common.h>
53 #include <crm/pengine/status_compat.h>
54 #endif
55
56 #endif