HomeClusterLabs Projects

Refactor: libcib: Rearrange the internal find_attr function.

Description

Refactor: libcib: Rearrange the internal find_attr function.

In particular, this removes the value parameter and changes the return
type to be an xmlNodePtr. These changes, plus the addition of a new
handle_multiples function, allow the callers to decide how to deal with
the possibility of there being multiple attributes.

This can occur if there's more than one attribute with a single name.
The other possibility is if no attribute name is passed at all, so
all attributes for a given node are returned. We'll be able to handle
that differently in a future commit.

Details

Provenance
clumensAuthored on May 4 2022, 4:01 PM
Parents
rP9a83233fef88: Merge pull request #2705 from gao-yan/probe-fenced-target-of-failed-migrate_to
Branches
Unknown
Tags
Unknown