HomeClusterLabs Projects

Refactor: libcrmcommon: pcmk__xe_match() -> pcmk__xe_first_child()

Description

Refactor: libcrmcommon: pcmkxe_match() -> pcmkxe_first_child()

For clarity. This function always returns the first child element that
matches the given criteria. The "pcmk__xe_match" name doesn't make it
clear that we're matching a child rather than the given element, and it
doesn't make it clear that we're getting the first matching child.

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

Details

Provenance
nrwahl2Authored on Mar 21 2024, 1:56 AM
Parents
rPa94e1f59ca29: Refactor: libcrmcommon: Rename pcmk__xe_first_child -> ..._any
Branches
Unknown
Tags
Unknown