HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__xpath_num_nodes()
249656804b4cUnpublished

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_num_nodes()

To replace numXpathResults().

The function is named num_nodes() because that's literally what it's
getting -- the number of nodes in the node set of the XPath object.
However, we could just as well name it num_results() to advertise its
significance: the number of nodes in an XPath search result.

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

Details

Provenance
nrwahl2Authored on Mar 10 2025, 7:37 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.