HomeClusterLabs Projects

Refactor: tools: Add a mon_state_t type.

Description

Refactor: tools: Add a mon_state_t type.

This packages up the destination file pointer and mon_output_* enum into
a single structure that is then passed as an argument to all the many
print_* functions. In the future, a pcmk__output_t can also be added to
this structure when the formatted output conversion starts happening.

The purpose of this is to contain all the data necessary for both
printing with the current output style and for printing with the
formatted output code in a single place. This allows changing one
function at a time from the current style to the formatted output style.

When that conversion is completed, this type can go away and be replaced
with just a pcmk__output_t parameter.

Details

Provenance
clumensAuthored on Jul 22 2019, 1:07 PM
Parents
rP5481e48939f0: Refactor: tools: Move crm_mon printing functions out.
Branches
Unknown
Tags
Unknown

Event Timeline