Skip to main content

pamoja_profile_control

Function pamoja_profile_control 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_profile_control( profile: *const PamojaProfile, out_control: *mut PamojaControlSpec, ) -> PamojaStatus
Expand description

Returns the control policy a profile applies.

§Arguments

  • profile - the profile.
  • out_control - receives the policy.

§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_control must be writable.