HomeClusterLabs Projects

Refactor: libcib: New arguments for cib_create_op()

Description

Refactor: libcib: New arguments for cib_create_op()

Also rename to cib__create_op() (double underscore for internal API).

Take a cib argument instead of a call_id argument, and increment the
call ID within cib__create_op(). A small side effect is that cib_remote
registration now uses a call ID of 1 instead of 0; another is that
cib_native registration now includes a call ID where it previously did
not.

Take a client_name argument to simplify CRM_OP_REGISTER calls.

Use in cib_native_signon_raw().

Consistently NULL-check return value.

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

Details

Provenance
nrwahl2Authored on Jul 29 2023, 4:32 PM
Parents
rP22cb8e8c266f: Merge pull request #3181 from nrwahl2/nrwahl2-cts
Branches
Unknown
Tags
Unknown