Skip to main content

pamoja_profile_presentation_json

Function pamoja_profile_presentation_json 

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

Returns how a profile presents itself on a dashboard, as the JSON object its manifest carries under presentation.

§Arguments

  • profile - the profile.

§Returns

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

§Safety

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