HomeClusterLabs Projects

Refactor: libcrmcommon,libpe_rules: move resource evaluation to libcrmcommon

Description

Refactor: libcrmcommon,libpe_rules: move resource evaluation to libcrmcommon

Move the functionality of peeval_rsc_expr() to a new function
pcmk
evaluate_rsc_expression() in libcrmcommon.

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

No code changes other than the minimum necessary to use the new struct and
return value.

Details

Provenance
kgaillotAuthored on Feb 8 2024, 2:35 PM
Parents
rP34d1ea4df60e: Test: libcrmcommon: add unit tests for pcmk__evaluate_op_expression()
Branches
Unknown
Tags
Unknown