Skip to main content

pamoja_updater_progress

Function pamoja_updater_progress 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_updater_progress( updater: *mut PamojaUpdater, out_written: *mut u32, out_total: *mut u32, ) -> PamojaStatus
Expand description

Reports how much of an opened image has arrived.

§Arguments

  • updater - the updater.
  • out_written - receives the bytes stored so far.
  • out_total - receives the total the manifest declares.

§Returns

PamojaStatus::Ok on success.

§Safety

updater must be a live handle from pamoja_updater_new, and the output pointers must be writable or null.