diff options
Diffstat (limited to 'include/pcmki/pcmki_sched_allocate.h')
-rw-r--r-- | include/pcmki/pcmki_sched_allocate.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/include/pcmki/pcmki_sched_allocate.h b/include/pcmki/pcmki_sched_allocate.h new file mode 100644 index 0000000..32044ea --- /dev/null +++ b/include/pcmki/pcmki_sched_allocate.h @@ -0,0 +1,50 @@ +/* + * Copyright 2004-2023 the Pacemaker project contributors + * + * The version control history for this file may have further details. + * + * This source code is licensed under the GNU Lesser General Public License + * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. + */ + +#ifndef PCMK__PCMKI_PCMKI_SCHED_ALLOCATE__H +# define PCMK__PCMKI_PCMKI_SCHED_ALLOCATE__H + +# include <glib.h> +# include <crm/common/xml.h> +# include <crm/pengine/status.h> +# include <crm/pengine/complex.h> +# include <crm/common/xml_internal.h> +# include <crm/pengine/internal.h> +# include <crm/common/xml.h> +# include <pcmki/pcmki_scheduler.h> + +pe_node_t *pcmk__bundle_allocate(pe_resource_t *rsc, const pe_node_t *prefer); +void pcmk__bundle_create_actions(pe_resource_t *rsc); +bool pcmk__bundle_create_probe(pe_resource_t *rsc, pe_node_t *node); +void pcmk__bundle_internal_constraints(pe_resource_t *rsc); +void pcmk__bundle_rsc_location(pe_resource_t *rsc, pe__location_t *constraint); +enum pe_action_flags pcmk__bundle_action_flags(pe_action_t *action, + const pe_node_t *node); +void pcmk__bundle_expand(pe_resource_t *rsc); +void pcmk__bundle_add_utilization(const pe_resource_t *rsc, + const pe_resource_t *orig_rsc, + GList *all_rscs, GHashTable *utilization); +void pcmk__bundle_shutdown_lock(pe_resource_t *rsc); + +void clone_create_actions(pe_resource_t *rsc); +void clone_internal_constraints(pe_resource_t *rsc); +void clone_rsc_location(pe_resource_t *rsc, pe__location_t *constraint); +enum pe_action_flags clone_action_flags(pe_action_t *action, + const pe_node_t *node); +void clone_expand(pe_resource_t *rsc); +bool clone_create_probe(pe_resource_t *rsc, pe_node_t *node); +void clone_append_meta(const pe_resource_t *rsc, xmlNode *xml); +void pcmk__clone_add_utilization(const pe_resource_t *rsc, + const pe_resource_t *orig_rsc, + GList *all_rscs, GHashTable *utilization); +void pcmk__clone_shutdown_lock(pe_resource_t *rsc); + +void pcmk__log_transition_summary(const char *filename); + +#endif |