HomeClusterLabs Projects

Refactor: tools: Scaffolding for formatted output in crm_shadow

Description

Refactor: tools: Scaffolding for formatted output in crm_shadow

Reviewing the changes for formatted output in crm_shadow will be
somewhat tedious. I'm breaking it into steps to make review easier.

This commit creates an output object that currently does nothing. It
registers formats and an empty array of message functions.

The letters in the pcmk__cmdline_preproc() call get rearranged for
better readability, which should have been done in the past.

Also make the pcmk__output_t object function-scope to main(). Moving to
libpacemaker will be easier if our helper functions won't rely on a
global output object.

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

Details

Provenance
nrwahl2Authored on Feb 21 2023, 4:28 PM
Parents
rP7231696132e7: Merge pull request #3044 from nrwahl2/nrwahl2-T108_prep
Branches
Unknown
Tags
Unknown