#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_updater_finish(
updater: *mut PamojaUpdater,
out_slot: *mut u8,
) -> PamojaStatusExpand description
Finishes an opened image and marks the slot bootable if it matched.
§Arguments
updater- the updater.out_slot- receives the slot now holding a staged image.
§Returns
PamojaStatus::Ok on success, or a failure if the image is not the one the
manifest described, which leaves the slot unbootable.
§Safety
updater must be a live handle from pamoja_updater_new, and out_slot
must be writable or null.