10 #ifndef PCMK__CRM_PENGINE_STATUS__H 11 # define PCMK__CRM_PENGINE_STATUS__H 43 const char *node_name);
44 GList *
find_operations(
const char *rsc,
const char *node, gboolean active_filter,
102 while (rsc->
parent != NULL) {
pe_node_t * pe_find_node_any(const GList *node_list, const char *id, const char *node_name)
Find a node by name or ID in a list of nodes.
pe_resource_t * pe_find_resource_with_flags(GList *rsc_list, const char *id, enum pe_find flags)
void pe_free_working_set(pe_working_set_t *data_set)
Free a working set.
pe_working_set_t * pe_new_working_set(void)
Create a new working set.
pe_resource_t * pe_find_resource(GList *rsc_list, const char *id_rh)
void pe_reset_working_set(pe_working_set_t *data_set)
Reset a working set to default state without freeing it.
void cleanup_calculations(pe_working_set_t *data_set)
Reset working set to default state without freeing it or constraints.
pe_find
Determine behavior of pe_find_resource_with_flags()
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
void set_working_set_defaults(pe_working_set_t *data_set)
pe_working_set_t * data_set
enum pe_obj_types variant
pe_node_t * pe_find_node_id(const GList *node_list, const char *id)
Find a node by ID in a list of nodes.
const char * rsc_printable_id(const pe_resource_t *rsc)
gboolean cluster_status(pe_working_set_t *data_set)
void calculate_active_ops(const GList *sorted_op_list, int *start_index, int *stop_index)
pe_node_t * pe_find_node(const GList *node_list, const char *node_name)
Find a node by name in a list of nodes.
GList * find_operations(const char *rsc, const char *node, gboolean active_filter, pe_working_set_t *data_set)
Data types for cluster status.
int pe_bundle_replicas(const pe_resource_t *rsc)
Get the number of configured replicas in a bundle.