pub type GSettingsGetMapping = Option<unsafe extern "C" fn(value: *mut GVariant, result: *mut gpointer, user_data: gpointer) -> gboolean>;
Expand description
GSettingsGetMapping: @value: the #GVariant to map, or %NULL @result: (out): the result of the mapping @user_data: (closure): the user data that was passed to g_settings_get_mapped()
The type of the function that is used to convert from a value stored in a #GSettings to a value that is useful to the application.
If the value is successfully mapped, the result should be stored at @result and %TRUE returned. If mapping fails (for example, if @value is not in the right format) then %FALSE should be returned.
If @value is %NULL then it means that the mapping function is being given a “last chance” to successfully return a valid value. %TRUE must be returned in this case.
Returns: %TRUE if the conversion succeeded, %FALSE in case of an error
Aliased Type§
enum GSettingsGetMapping {
None,
Some(unsafe extern "C" fn(*mut _GVariant, *mut *mut c_void, *mut c_void) -> i32),
}