HomeClusterLabs Projects

Refactor: libcrmcommon: consolidate create_request() "from" arguments

Description

Refactor: libcrmcommon: consolidate create_request() "from" arguments

create_request() adds a sender system to the new request. Most callers passed
only the sys_from argument, which would be used as-is. If the caller passed
both sys_from and uuid_from, create_request() would combine the two.

Now, have the callers create the sender ID when needed. This simplifies a
confusing function signature and eliminates an unnecessary string duplication
in the common case.

This breaks API backward compatibility (but the interfaces will be dropped
shortly anyway).

Details

Provenance
kgaillotAuthored on Jul 11 2024, 10:10 PM
Parents
rP8e6a6b12ec45: Low: controller: use pcmk__new_message() to create direct acks
Branches
Unknown
Tags
Unknown