mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
added new function g_nullify_pointer().
2001-08-06 Sven Neumann <sven@gimp.org> * glib/gutils.[ch]: added new function g_nullify_pointer(). * gobject/gobject.[ch]: added new functions g_object_[add|remove]_weak_pointer().
This commit is contained in:
committed by
Sven Neumann
parent
ec759772de
commit
d1d623b072
@@ -157,6 +157,10 @@ g_object_class_find_property
|
||||
g_object_new
|
||||
g_object_ref
|
||||
g_object_unref
|
||||
g_object_weak_ref
|
||||
g_object_weak_unref
|
||||
g_object_add_weak_pointer
|
||||
g_object_remove_weak_pointer
|
||||
g_object_connect
|
||||
g_object_disconnect
|
||||
g_object_set
|
||||
|
@@ -207,6 +207,49 @@ The Base Object Type
|
||||
@object:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_object_weak_ref ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@object:
|
||||
@notify:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_object_weak_unref ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@object:
|
||||
@notify:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_object_add_weak_pointer ##### -->
|
||||
<para>
|
||||
Adds a weak reference from weak_pointer to @object to indicate that
|
||||
the pointer located at @weak_pointer_location is only valid during the
|
||||
lifetime of @object. When the @object is finalized, @weak_pointer will
|
||||
be set to %NULL.
|
||||
</para>
|
||||
|
||||
@object: the object that should be weak referenced.
|
||||
@weak_pointer_location: the memory address of a pointer.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_object_remove_weak_pointer ##### -->
|
||||
<para>
|
||||
Removes a weak reference from @object that was previously added
|
||||
using g_object_add_weak_pointer(). The @weak_pointer_location has
|
||||
to match the one used with g_object_add_weak_pointer().
|
||||
</para>
|
||||
|
||||
@object: the object that is weak referenced.
|
||||
@weak_pointer_location: the memory address of a pointer.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_object_connect ##### -->
|
||||
<para>
|
||||
|
||||
|
Reference in New Issue
Block a user