Skip to main content

pamoja_updater_slot_record

Function pamoja_updater_slot_record 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_updater_slot_record( updater: *const PamojaUpdater, slot: u8, out_record: *mut PamojaSlotRecord, ) -> PamojaStatus
Expand description

Reads what a device believes about one slot.

§Arguments

  • updater - the updater.
  • slot - the slot to read.
  • out_record - receives the record.

§Returns

PamojaStatus::Ok on success, or a failure if the device has no such slot.

§Safety

updater must be a live handle from pamoja_updater_new, and out_record must be writable.