HomeClusterLabs Projects

Feature: libcrmcommon: Add pcmk__str_any_of and pcmk__str_none_of.

Description

Feature: libcrmcommon: Add pcmkstr_any_of and pcmkstr_none_of.

These functions take a string and a NULL-terminated list of strings and
test for membership. NULL-termination is enforced by the compiler. The
intent of these functions is to get rid of large chains of running
safe_str_eq over and over.

Details

Provenance
clumensAuthored on Jun 26 2020, 3:56 PM
Parents
rP67a6a9b31ed4: Merge pull request #2085 from clumens/fo-cleanups
Branches
Unknown
Tags
Unknown

Event Timeline