diff options
Diffstat (limited to '')
-rw-r--r-- | tools/crm_resource.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/tools/crm_resource.h b/tools/crm_resource.h index dc86572..de85a5b 100644 --- a/tools/crm_resource.h +++ b/tools/crm_resource.h @@ -1,5 +1,5 @@ /* - * Copyright 2004-2023 the Pacemaker project contributors + * Copyright 2004-2024 the Pacemaker project contributors * * The version control history for this file may have further details. * @@ -14,7 +14,6 @@ #include <crm/crm.h> -#include <crm/msg_xml.h> #include <crm/services.h> #include <crm/common/xml.h> #include <crm/common/mainloop.h> @@ -22,7 +21,7 @@ #include <crm/common/scheduler_internal.h> #include <crm/cib.h> -#include <crm/common/attrd_internal.h> +#include <crm/common/attrs_internal.h> #include <crm/pengine/rules.h> #include <crm/pengine/status.h> #include <crm/pengine/internal.h> @@ -35,6 +34,16 @@ typedef struct node_info_s { bool promoted; } node_info_t; +typedef struct { + char *attr_set_type; + char *attr_set_id; + char *attr_name; + char *attr_value; + char *given_rsc_id; + char *found_attr_id; + pcmk_resource_t *rsc; +} attr_update_data_t; + enum resource_check_flags { rsc_remain_stopped = (1 << 0), rsc_unpromotable = (1 << 1), @@ -89,7 +98,7 @@ int cli_cleanup_all(pcmk_ipc_api_t *controld_api, const char *node_name, pcmk_scheduler_t *scheduler); int cli_resource_restart(pcmk__output_t *out, pcmk_resource_t *rsc, const pcmk_node_t *node, const char *move_lifetime, - int timeout_ms, cib_t *cib, int cib_options, + guint timeout_ms, cib_t *cib, int cib_options, gboolean promoted_role_only, gboolean force); int cli_resource_move(const pcmk_resource_t *rsc, const char *rsc_id, const char *host_name, const char *move_lifetime, @@ -99,12 +108,13 @@ crm_exit_t cli_resource_execute_from_params(pcmk__output_t *out, const char *rsc const char *rsc_class, const char *rsc_prov, const char *rsc_type, const char *rsc_action, GHashTable *params, GHashTable *override_hash, - int timeout_ms, int resource_verbose, + guint timeout_ms, + int resource_verbose, gboolean force, int check_level); crm_exit_t cli_resource_execute(pcmk_resource_t *rsc, const char *requested_name, const char *rsc_action, GHashTable *override_hash, - int timeout_ms, cib_t *cib, + guint timeout_ms, cib_t *cib, pcmk_scheduler_t *scheduler, int resource_verbose, gboolean force, int check_level); @@ -113,7 +123,7 @@ int cli_resource_update_attribute(pcmk_resource_t *rsc, const char *attr_set, const char *attr_set_type, const char *attr_id, const char *attr_name, const char *attr_value, gboolean recursive, - cib_t *cib, int cib_options, gboolean force); + cib_t *cib, gboolean force); int cli_resource_delete_attribute(pcmk_resource_t *rsc, const char *requested_name, const char *attr_set, const char *attr_set_type, @@ -121,7 +131,7 @@ int cli_resource_delete_attribute(pcmk_resource_t *rsc, cib_t *cib, int cib_options, gboolean force); int update_scheduler_input(pcmk_scheduler_t *scheduler, xmlNode **xml); -int wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib); +int wait_till_stable(pcmk__output_t *out, guint timeout_ms, cib_t * cib); bool resource_is_running_on(pcmk_resource_t *rsc, const char *host); |