HomeClusterLabs Projects

XML: schemas.c: prepare the ground for unfold-transform-refold logic

Description

XML: schemas.c: prepare the ground for unfold-transform-refold logic

Or more fittingly, for "transformation wrapped in the context
manager-like auxiliary pre-/post-process transformations
(dubbed enter/leave)".

Notably, add add_schema_by_version function to wrap add_schema, which
itself should not then be used directly when schema specified through
"version".

This commit should exceptionally be rather compiled with
CFLAGS=-Wno-error=unused-function, for apparent reason.

Details

Provenance
Jan Pokorný <jpokorny@redhat.com>Authored on May 31 2018, 11:29 AM
Parents
rP1fc4a3ee23e9: XML: schemas.c: crm_schema_init: simplify for/break, call add_schema 1x
Branches
Unknown
Tags
Unknown