Struct
GObjectTypeValueTable
since: 2.0
Description
struct GTypeValueTable {
GTypeValueInitFunc value_init;
GTypeValueFreeFunc value_free;
GTypeValueCopyFunc value_copy;
GTypeValuePeekPointerFunc value_peek_pointer;
const gchar* collect_format;
GTypeValueCollectFunc collect_value;
const gchar* lcopy_format;
GTypeValueLCopyFunc lcopy_value;
}
The GTypeValueTable provides the functions required by the GValue
implementation, to serve as a container for values of a type.
Structure members
value_initFunction to initialize a GValue.
value_freeFunction to free a GValue.
value_copyFunction to copy a GValue.
value_peek_pointerFunction to peek the contents of a GValue if they fit into a pointer.
collect_formatA string format describing how to collect the contents of this value bit-by-bit. Each character in the format represents an argument to be collected, and the characters themselves indicate the type of the argument. Currently supported arguments are: -
'i': Integers, passed ascollect_values[].v_int-'l': Longs, passed ascollect_values[].v_long-'d': Doubles, passed ascollect_values[].v_double-'p': Pointers, passed ascollect_values[].v_pointerIt should be noted that for variable argument list construction, ANSI C promotes every type smaller than an integer to an int, and floats to doubles. So for collection of short int or char,'i'needs to be used, and for collection of floats'd'.collect_valueFunction to initialize a GValue from the values collected from variadic arguments.
lcopy_formatFormat description of the arguments to collect for
lcopy_value, analogous tocollect_format. Usually,lcopy_formatstring consists only of'p's to providelcopy_value()with pointers to storage locations.lcopy_valueFunction to store the contents of a value into the locations collected from variadic arguments.
Available since: 2.0
Functions
g_type_value_table_peek
Returns the location of the GTypeValueTable associated with type.
since: 2.0