mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 03:32:12 +01:00
Document G_VALUE_NOCOPY_CONTENTS
https://bugzilla.gnome.org/show_bug.cgi?id=624943
This commit is contained in:
parent
1ec5c4401a
commit
1f39997da2
@ -1186,7 +1186,7 @@ struct _GInterfaceInfo
|
|||||||
* return g_strdup_printf ("object location passed as NULL");
|
* return g_strdup_printf ("object location passed as NULL");
|
||||||
* if (!value->data[0].v_pointer)
|
* if (!value->data[0].v_pointer)
|
||||||
* *object_p = NULL;
|
* *object_p = NULL;
|
||||||
* else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) // always honour
|
* else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) /* always honour */
|
||||||
* *object_p = value->data[0].v_pointer;
|
* *object_p = value->data[0].v_pointer;
|
||||||
* else
|
* else
|
||||||
* *object_p = g_object_ref (value->data[0].v_pointer);
|
* *object_p = g_object_ref (value->data[0].v_pointer);
|
||||||
|
@ -151,6 +151,14 @@ gboolean g_value_transform (const GValue *src_value,
|
|||||||
void g_value_register_transform_func (GType src_type,
|
void g_value_register_transform_func (GType src_type,
|
||||||
GType dest_type,
|
GType dest_type,
|
||||||
GValueTransform transform_func);
|
GValueTransform transform_func);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* G_VALUE_NOCOPY_CONTENTS:
|
||||||
|
*
|
||||||
|
* If passed to G_VALUE_COLLECT(), allocated data won't be copied
|
||||||
|
* but used verbatim. This does not affect ref-counted types like
|
||||||
|
* objects. For more details, see the #GValueTable documentation.
|
||||||
|
*/
|
||||||
#define G_VALUE_NOCOPY_CONTENTS (1 << 27)
|
#define G_VALUE_NOCOPY_CONTENTS (1 << 27)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user