#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_profile_power(
profile: *const PamojaProfile,
out_schedule: *mut PamojaPowerSchedule,
) -> PamojaStatusExpand description
Returns the sampling schedule a profile keeps as its battery drains.
§Arguments
profile- the profile.out_schedule- receives the schedule.
§Returns
PamojaStatus::Ok on success, or PamojaStatus::InvalidArgument if
either pointer is null.
§Safety
profile must be a live handle from a call that produced one, and
out_schedule must be writable.