HomeClusterLabs Projects

Refactor: libcrmcommon,libpe_rules: move attribute evaluation to libcrmcommon

Description

Refactor: libcrmcommon,libpe_rules: move attribute evaluation to libcrmcommon

Move the functionality of peeval_attr_expr(), including static functions it
calls, to a new function pcmk
evaluate_attr_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, 12:10 PM
Parents
rPff8a250e1d29: API: libcrmcommon: add pcmk_rule_input_t type
Branches
Unknown
Tags
Unknown