HomeClusterLabs Projects

Refactor: libcrmcommon: Separate XML tree traversal from work

Description

Refactor: libcrmcommon: Separate XML tree traversal from work

Create a new pcmk__xml_tree_foreach() helper that applies a function to
each node in an XML tree until the function's return value tells it to
stop or it has finished traversing the tree.

This will be used outside of xml.c, hence non-static.

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

Details

Provenance
nrwahl2Authored on Feb 11 2024, 7:49 PM
Parents
rPd216b36cf8e2: API: libcrmcommon: Deprecate replace_xml_child()
Branches
Unknown
Tags
Unknown