HomeClusterLabs Projects

Refactor: libcrmcommon: Improve xml_find_x_0_schema_index.

Description

Refactor: libcrmcommon: Improve xml_find_x_0_schema_index.

  • Lots of comments to explain how it works.
  • Walk the list backwards, stopping on the first one in the major version series. This means the first one no longer has to be X.0.
  • Require that known_schemas be non-NULL.
  • Don't use the returned index to also mean we've found something since that means if the index we actually want to return is 0, the function will have to run every time.

Details

Provenance
clumensAuthored on Nov 17 2023, 9:42 AM
Parents
rP1fd1ffbf6019: Merge pull request #3247 from clumens/schemas-glib
Branches
Unknown
Tags
Unknown