1 <!-- ##### SECTION Title ##### -->
2 Varargs Value Collection
4 <!-- ##### SECTION Short_Description ##### -->
5 Converting varargs to generic values
7 <!-- ##### SECTION Long_Description ##### -->
12 <!-- ##### SECTION See_Also ##### -->
17 <!-- ##### UNION GTypeCValue ##### -->
19 A union holding one collected value.
23 <!-- ##### MACRO G_VALUE_COLLECT ##### -->
25 Collects a variable argument value from a va_list. We have to
26 implement the varargs collection as a macro, because on some systems
27 va_list variables cannot be passed by reference.
30 @value: a #GValue return location. @value is supposed to be initialized
31 according to the value type to be collected
32 @var_args: the va_list variable; it may be evaluated multiple times
33 @flags: flags which are passed on to the collect_value() function of
34 the #GTypeValueTable of @value.
35 @__error: a #gchar** variable that will be modified to hold a g_new()
36 allocated error messages if something fails
39 <!-- ##### MACRO G_VALUE_LCOPY ##### -->
41 Collects a value's variable argument locations from a va_list.
44 @value: a #GValue return location. @value is supposed to be initialized
45 according to the value type to be collected
46 @var_args: the va_list variable; it may be evaluated multiple times
47 @flags: flags which are passed on to the lcopy_value() function of
48 the #GTypeValueTable of @value.
49 @__error: a #gchar** variable that will be modified to hold a g_new()
50 allocated error messages if something fails
53 <!-- ##### MACRO G_VALUE_COLLECT_FORMAT_MAX_LENGTH ##### -->
55 The maximal number of #GTypeCValue<!-- -->s which can be collected for a