#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_profile_power_plan(
profile: *const PamojaProfile,
out_plan: *mut PamojaPowerPlan,
) -> PamojaStatusExpand description
Assembles a profile’s schedule into a power governor.
The governor is the same one pamoja_power_plan_new
builds, so the mode and interval calls in that module apply to it unchanged.
§Arguments
profile- the profile.out_plan- receives the governor.
§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_plan
must be writable.