HomeClusterLabs Projects

Refactor: libpe_status: get rid of unpack.h

Description

Refactor: libpe_status: get rid of unpack.h

Files outside lib/pengine were including lib/pengine/unpack.h which was an
opportunity for unexpected consequences.

The only part that was needed outside libpe_status, the pe_warn_once()-related
stuff, was moved to include/crm/pengine/internal.h.

daemons/based/cibmon.c, lib/pengine/complex.c and lib/pengine/utils.c didn't
even need to include it at all. unpack_lrm_resources() didn't need to be
exposed, so it was made static to lib/pengine/unpack.c.

The remaining functions were moved to libpe_status_private.h and made
G_GNUC_INTERNAL for linker efficiency.

Details

Provenance
kgaillotAuthored on Mar 24 2020, 4:34 PM
Parents
rP2138e95497e2: Refactor: libpacemaker: remove dead code
Branches
Unknown
Tags
Unknown

Event Timeline