HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__xpath_foreach_result()
68154e78b4a5Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

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 Mar 11 2025, 3:24 AM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.