HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__xpath_foreach_result()

Description

Refactor: libcrmcommon: New pcmk__xpath_foreach_result()

To replace crm_foreach_xpath_result().

We can add a reverse argument later if needed.

Note that all internal callers are passing XPath expressions that can
only match elements. So we don't have to worry about the "return an
element for an attribute, etc." logic that we were using in the past via
crm_foreach_xpath_result() -> pcmk__xpath_match_element() (or
getXpathResult() farther in the past).

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Tue, Mar 11, 3:24 AM
Parents
rPfb1082e3b8de: Refactor: libcrmcommon: New PCMK__XE_FILE string constant
Branches
Unknown
Tags
Unknown