HomeClusterLabs Projects

Feature: libcrmcommon: Internal constant for number of Pacemaker RCs

Description

Feature: libcrmcommon: Internal constant for number of Pacemaker RCs

Convert PCMKN_RC to const int pcmk__n_rc in lib/common/results.c,
and declare it as extern in results_internal.h. This way we can access
the number of negative Pacemaker return codes from anywhere internally.
We'll use this next to improve some loop logic in
pcmk
list_result_codes().

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

Details

Provenance
nrwahl2Authored on Aug 28 2022, 7:31 PM
Parents
rP01714fc91dd4: Refactor: libcrmcommon: Use PCMK__NELEM() to compute PCMK__N_RC
Branches
Unknown
Tags
Unknown