2000-09-06 06:32:45 +02:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Varargs Value Collection
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2002-11-23 23:57:35 +01:00
|
|
|
Converting varargs to generic values
|
2000-09-06 06:32:45 +02:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2005-05-09 07:25:21 +02:00
|
|
|
The macros in this section provide the varargs parsing support needed
|
|
|
|
in variadic GObject functions such as g_object_new() or g_object_set().
|
|
|
|
They currently support the collection of integral types, floating point
|
|
|
|
types and pointers.
|
2000-09-06 06:32:45 +02:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2005-05-09 07:25:21 +02:00
|
|
|
#GValueTable
|
2000-09-06 06:32:45 +02:00
|
|
|
</para>
|
|
|
|
|
2005-05-05 16:57:29 +02:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2000-09-06 06:32:45 +02:00
|
|
|
<!-- ##### UNION GTypeCValue ##### -->
|
|
|
|
<para>
|
2003-10-05 23:32:09 +02:00
|
|
|
A union holding one collected value.
|
2000-09-06 06:32:45 +02:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_VALUE_COLLECT ##### -->
|
|
|
|
<para>
|
2003-10-05 23:32:09 +02:00
|
|
|
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.
|
2000-09-06 06:32:45 +02:00
|
|
|
</para>
|
|
|
|
|
2003-10-05 23:32:09 +02:00
|
|
|
@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
|
2000-09-06 06:32:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_VALUE_LCOPY ##### -->
|
|
|
|
<para>
|
2003-10-05 23:32:09 +02:00
|
|
|
Collects a value's variable argument locations from a va_list.
|
2000-09-06 06:32:45 +02:00
|
|
|
</para>
|
|
|
|
|
2003-10-05 23:32:09 +02:00
|
|
|
@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
|
2000-09-06 06:32:45 +02:00
|
|
|
|
|
|
|
|
2001-11-22 19:54:47 +01:00
|
|
|
<!-- ##### MACRO G_VALUE_COLLECT_FORMAT_MAX_LENGTH ##### -->
|
|
|
|
<para>
|
2003-10-05 23:32:09 +02:00
|
|
|
The maximal number of #GTypeCValue<!-- -->s which can be collected for a
|
|
|
|
single #GValue.
|
2001-11-22 19:54:47 +01:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|