Skip to main content

pamoja_profile_control_params_json

Function pamoja_profile_control_params_json 

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

Returns the parameters a custom control kind carries, as the JSON object of every field the manifest wrote beside kind.

§Arguments

  • profile - the profile.

§Returns

A null-terminated UTF-8 string the caller must release with pamoja_string_free, or null if the kind is a built-in one or profile is null. The two cases are told apart by pamoja_last_error_message, which is set only for a null handle or parameters that cannot be serialized.

§Safety

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