HomeClusterLabs Projects

Refactor: libs: Set XML properties when creating a node.

Description

Refactor: libs: Set XML properties when creating a node.

pcmk__output_create_xml_node can take a NULL-terminated list of
properties that should be set on the node at the same time it's created.
This saves a bunch of calls to xmlSetProp and gets rid of some variables
that are otherwise not needed.

Unfortunately, this can't be used everywhere I'd like but it's a good
start.

Details

Provenance
clumensAuthored on Nov 17 2020, 1:00 PM
Parents
rPa2b8e75abf42: Refactor: libs: Add a function to set properties on an xmlNode.
Branches
Unknown
Tags
Unknown

Event Timeline