mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
2ae1a46b4c
2005-05-05 Owen Taylor <otaylor@redhat.com> * gobject.[ch] gobject.symbols: Add g_object_add/remove_toggle_ref() functions to get notification when a reference count is the last remaining reference; this enables better memory management for language bindings. (http://mail.gnome.org/archives/gtk-devel-list/2005-April/msg00095.html) 2005-05-05 Owen Taylor <otaylor@redhat.com> * glib/gdataset.[ch] glib/gdatasetprivate.h: Add g_datalist_set/unset_flags(), g_datalist_get_flags() functions to squeeze some bits into a GDataSet... this is needed for efficient implementation of toggle references in GObject. * tests/gobject/references.c tests/gobject/Makefile.am: Add a test case for weak and toggle references. * glib/gfileutils.[ch]: Rename g_file_replace() back to g_file_set_contents(). * glib/glib.symbols: Update. 2005-05-05 Owen Taylor <otaylor@redhat.com> * glib/Makefile.am glib/glib-sections.txt gobject/gobject-sections.txt: Update * gobject/tmpl/objects.sgml: Document toggle-references.
64 lines
1.7 KiB
Plaintext
64 lines
1.7 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
Varargs Value Collection
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
Converting varargs to generic values
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
<!-- ##### UNION GTypeCValue ##### -->
|
|
<para>
|
|
A union holding one collected value.
|
|
</para>
|
|
|
|
|
|
<!-- ##### MACRO G_VALUE_COLLECT ##### -->
|
|
<para>
|
|
Collects a variable argument value from a va_list. We have to
|
|
implement the varargs collection as a macro, because on some systems
|
|
va_list variables cannot be passed by reference.
|
|
</para>
|
|
|
|
@value: a #GValue return location. @value is supposed to be initialized
|
|
according to the value type to be collected
|
|
@var_args: the va_list variable; it may be evaluated multiple times
|
|
@flags: flags which are passed on to the collect_value() function of
|
|
the #GTypeValueTable of @value.
|
|
@__error: a #gchar** variable that will be modified to hold a g_new()
|
|
allocated error messages if something fails
|
|
|
|
|
|
<!-- ##### MACRO G_VALUE_LCOPY ##### -->
|
|
<para>
|
|
Collects a value's variable argument locations from a va_list.
|
|
</para>
|
|
|
|
@value: a #GValue return location. @value is supposed to be initialized
|
|
according to the value type to be collected
|
|
@var_args: the va_list variable; it may be evaluated multiple times
|
|
@flags: flags which are passed on to the lcopy_value() function of
|
|
the #GTypeValueTable of @value.
|
|
@__error: a #gchar** variable that will be modified to hold a g_new()
|
|
allocated error messages if something fails
|
|
|
|
|
|
<!-- ##### MACRO G_VALUE_COLLECT_FORMAT_MAX_LENGTH ##### -->
|
|
<para>
|
|
The maximal number of #GTypeCValue<!-- -->s which can be collected for a
|
|
single #GValue.
|
|
</para>
|
|
|
|
|
|
|