Skip to main content

pamoja_profile_controller

Function pamoja_profile_controller 

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

Builds the decision logic a profile describes.

§Arguments

  • profile - the profile.

§Returns

A handle the caller must release with pamoja_controller_free, or null if profile is null or names a custom control kind, which no built-in controller decides, with the reason available from pamoja_last_error_message.

§Safety

profile must be a live handle from a call that produced one, or null.