HomeClusterLabs Projects

Refactor: libcrmcommon,libpe_rules: move ruleset evaluation to libcrmcommon

Description

Refactor: libcrmcommon,libpe_rules: move ruleset evaluation to libcrmcommon

Move the functionality of pe_eval_rules() to a new function
pcmk__evaluate_rules() in libcrmcommon. It is internal because it is
needed only for deprecated functionality that will be dropped soon.

The new function uses pcmk_rule_input_t instead of pe_rule_eval_data_t, and
returns a standard Pacemaker return code. The old function is kept (for now)
as a wrapper that maps the old struct to the new.

Details

Provenance
kgaillotAuthored on Feb 12 2024, 12:52 PM
Parents
rP4eedfe810b38: Merge pull request #3412 from kgaillot/best-practices
Branches
Unknown
Tags
Unknown