Synopsis#include <glib-object.h> #include <gobject/gvaluecollector.h> union GTypeCValue; #define G_VALUE_COLLECT (value, var_args, flags, __error) #define G_VALUE_LCOPY (value, var_args, flags, __error) #define G_VALUE_COLLECT_FORMAT_MAX_LENGTH Description
The macros in this section provide the varargs parsing support needed
in variadic GObject functions such as
Detailsunion GTypeCValueunion GTypeCValue { gint v_int; glong v_long; gint64 v_int64; gdouble v_double; gpointer v_pointer; }; A union holding one collected value.
G_VALUE_COLLECT()#define G_VALUE_COLLECT(value, var_args, flags, __error) 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.
G_VALUE_LCOPY()#define G_VALUE_LCOPY(value, var_args, flags, __error)
Collects a value's variable argument locations from a va_list. Usage is
analogous to
G_VALUE_COLLECT_FORMAT_MAX_LENGTH#define G_VALUE_COLLECT_FORMAT_MAX_LENGTH (8) The maximal number of GTypeCValues which can be collected for a single GValue.
|