HomeClusterLabs Projects

Refactor: libcrmcommon: Add an easier way to register formats.

Description

Refactor: libcrmcommon: Add an easier way to register formats.

Instead of having separate steps of defining and adding command line options
and then separately having to register the formatter itself, there is now a
single pcmkregister_formats function that takes a table of new structures.
pcmk
register_format still exists and takes a lot of arguments, similar to
how pcmkregister_message and pcmkregister_messages are split up.

Note that for the moment, the GOptionContext being passed around doesn't
do anything. It's being created in stonith_admin only so everything
continues to compile. That will change soon.

Details

Provenance
clumensAuthored on Jun 26 2019, 4:34 PM
Parents
rPf8962d8b0802: Feature: libcrmcommon: Add glib option blocks to formatted output.
Branches
Unknown
Tags
Unknown

Event Timeline