Skip to main content

pamoja_profile_control_kind

Function pamoja_profile_control_kind 

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

Returns the control kind a profile names, as its manifest writes it.

§Arguments

  • profile - the profile.

§Returns

setpoint, level, surge, monitor, or a custom kind’s own name, as a null-terminated UTF-8 string the caller must release with pamoja_string_free, or null if profile is null.

§Safety

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