HomeClusterLabs Projects

Refactor: libcrmcommon: Add pcmk__xe_foreach_child.

Description

Refactor: libcrmcommon: Add pcmk__xe_foreach_child.

This function can be used to iterate over all children of a given XML
node with a given name. It can also be used to iterate over all
children of a given XML node if no name is given. This can be used to
replace all the first_named_child/crm_next_same_xml loops, as well as
the pcmkxe_first_child/pcmkxe_next loops.

Fixes T525

Details

Provenance
clumensAuthored on Aug 30 2022, 11:23 AM
Parents
rP68c64fbe1cca: Merge pull request #2829 from clumens/attrd-refresh
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task