HomeClusterLabs Projects

Refactor: based: Defunctionize do_cib_notify()

Description

Refactor: based: Defunctionize do_cib_notify()

It's only used with cib_diff_notify(). The only other analogous
notifier, cib_replace_notify(), doesn't use it.

As of right now, the logic is sufficiently short yet sufficiently
different in both functions that I don't think it's worth adapting
cib_replace_notify() to use a functionized do_cib_notify().

It's also worth noting that the logic is simplified after pulling it
into cib_diff_notify(): we can be sure that diff (previously
result_data) is non-NULL, and we don't have to worry about the message
type.

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

Details

Provenance
nrwahl2Authored on Mar 25 2023, 4:28 PM
Parents
rPa980f534cae5: Refactor: based, libcib: Drop F_CIB_CALLBACK_TOKEN
Branches
Unknown
Tags
Unknown