HomeClusterLabs Projects

Refactor: libcrmcommon,libpe_rules: move operation evaluation to libcrmcommon

Description

Refactor: libcrmcommon,libpe_rules: move operation evaluation to libcrmcommon

Move the functionality of peeval_op_expr() to a new function
pcmk
evaluate_op_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, 1:32 PM
Parents
rPa966aeea6093: Merge pull request #3386 from nrwahl2/nrwahl2-xml_attrs2
Branches
Unknown
Tags
Unknown