HomeClusterLabs Projects

rust: Improve Rust bindings

Description

rust: Improve Rust bindings

The big change here is that all API calls now take a &Handle
rather than making a copy. This, apart from being more sensible
and efficient, allows us to implment Drop on the handle so that
it will call _free() when it goes out of scope.

There's some jiggery-pokery with a clone flag in there now
because of callbacks that can return a valid handle, and we
want those to be Drop'ed sensibly.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
chrissie-cAuthored on Jan 8 2024, 9:29 AM
jfriesseCommitted on Jul 4 2024, 4:56 AM
Parents
rC600901815105: Move corosync-notifyd policy file into $(datadir)/dbus-1/system.d
Branches
Unknown
Tags
Unknown