mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
gvariant: Clarify the docs for g_variant_get_normal_form()
Document how non-normal parts of the `GVariant` are handled. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
4c0ddb26bc
commit
35dee77ed8
@ -5936,7 +5936,9 @@ g_variant_deep_copy (GVariant *value)
|
||||
* marked as trusted and a new reference to it is returned.
|
||||
*
|
||||
* If @value is found not to be in normal form then a new trusted
|
||||
* #GVariant is created with the same value as @value.
|
||||
* #GVariant is created with the same value as @value. The non-normal parts of
|
||||
* @value will be replaced with default values which are guaranteed to be in
|
||||
* normal form.
|
||||
*
|
||||
* It makes sense to call this function if you've received #GVariant
|
||||
* data from untrusted sources and you want to ensure your serialized
|
||||
|
Loading…
Reference in New Issue
Block a user