mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gobject: Add missing annotations to GValue variant methods
They were missing some (nullable) and (transfer) annotations. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=741167
This commit is contained in:
parent
a2a4a10299
commit
aca410c586
@ -1281,7 +1281,7 @@ g_value_take_variant (GValue *value,
|
|||||||
*
|
*
|
||||||
* Get the contents of a variant #GValue.
|
* Get the contents of a variant #GValue.
|
||||||
*
|
*
|
||||||
* Returns: variant contents of @value
|
* Returns: (nullable): variant contents of @value (may be %NULL)
|
||||||
*
|
*
|
||||||
* Since: 2.26
|
* Since: 2.26
|
||||||
*/
|
*/
|
||||||
@ -1297,10 +1297,11 @@ g_value_get_variant (const GValue *value)
|
|||||||
* g_value_dup_variant:
|
* g_value_dup_variant:
|
||||||
* @value: a valid #GValue of type %G_TYPE_VARIANT
|
* @value: a valid #GValue of type %G_TYPE_VARIANT
|
||||||
*
|
*
|
||||||
* Get the contents of a variant #GValue, increasing its refcount.
|
* Get the contents of a variant #GValue, increasing its refcount. The returned
|
||||||
|
* #GVariant is never floating.
|
||||||
*
|
*
|
||||||
* Returns: variant contents of @value, should be unrefed using
|
* Returns: (transfer full) (nullable): variant contents of @value (may be %NULL);
|
||||||
* g_variant_unref() when no longer needed
|
* should be unreffed using g_variant_unref() when no longer needed
|
||||||
*
|
*
|
||||||
* Since: 2.26
|
* Since: 2.26
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user