HomeClusterLabs Projects

API: libcrmcommon: deprecate crm_str_table_new()

Description

API: libcrmcommon: deprecate crm_str_table_new()

Pacemaker's public API should be Pacemaker-specific, and not provide
glib convenience wrappers.

Internal uses are replaced with a new internal function, pcmk__strkey_table(),
with slightly different semantics. Calls to crm_str_table_new() become:

pcmk__strkey_table(free, free)

and g_hash_table_new_full(crm_str_hash, g_str_equal, FN1, FN2) becomes:

pcmk__strkey_table(FN1, FN2)

Details

Provenance
kgaillotAuthored on Mar 23 2021, 1:58 PM
Parents
rPda7dae309090: Merge pull request #2332 from clumens/more-info-message
Branches
Unknown
Tags
Unknown

Event Timeline