Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <glib-object.h>
Go to the source code of this file.
Data Structures | |
union | _GTypeCValue |
Macros | |
#define | G_VALUE_COLLECT_INIT(value, _value_type, var_args, flags, __error) |
#define | G_VALUE_COLLECT_INIT2(value, g_vci_vtab, _value_type, var_args, flags, __error) |
#define | G_VALUE_COLLECT(value, var_args, flags, __error) |
#define | G_VALUE_COLLECT_SKIP(_value_type, var_args) |
#define | G_VALUE_LCOPY(value, var_args, flags, __error) |
#define | G_VALUE_COLLECT_FORMAT_MAX_LENGTH (8) |
Enumerations | |
enum | { G_VALUE_COLLECT_INT = 'i' , G_VALUE_COLLECT_LONG = 'l' , G_VALUE_COLLECT_INT64 = 'q' , G_VALUE_COLLECT_DOUBLE = 'd' , G_VALUE_COLLECT_POINTER = 'p' } |
#define G_VALUE_COLLECT | ( | value, | |
var_args, | |||
flags, | |||
__error ) |
G_VALUE_COLLECT: @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
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.
Note: If you are creating the @value argument just before calling this macro, you should use the G_VALUE_COLLECT_INIT() variant and pass the uninitialized GValue. That variant is faster than G_VALUE_COLLECT().
Definition at line 165 of file gvaluecollector.h.
#define G_VALUE_COLLECT_FORMAT_MAX_LENGTH (8) |
G_VALUE_COLLECT_FORMAT_MAX_LENGTH:
The maximal number of #GTypeCValues which can be collected for a single GValue.
Definition at line 276 of file gvaluecollector.h.
#define G_VALUE_COLLECT_INIT | ( | value, | |
_value_type, | |||
var_args, | |||
flags, | |||
__error ) |
G_VALUE_COLLECT_INIT: @value: a GValue return location. @value must contain only 0 bytes. @_value_type: the GType to use for @value. @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
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.
Since: 2.24
Definition at line 82 of file gvaluecollector.h.
#define G_VALUE_COLLECT_INIT2 | ( | value, | |
g_vci_vtab, | |||
_value_type, | |||
var_args, | |||
flags, | |||
__error ) |
G_VALUE_COLLECT_INIT2: @value: a GValue return location. @value must contain only 0 bytes. @g_vci_vtab: a GTypeValueTable pointer that will be set to the value table for @_value_type @_value_type: the GType to use for @value. @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
A variant of G_VALUE_COLLECT_INIT() that provides the GTypeValueTable to the caller.
Since: 2.74
Definition at line 105 of file gvaluecollector.h.
#define G_VALUE_COLLECT_SKIP | ( | _value_type, | |
var_args ) |
G_VALUE_COLLECT_SKIP: @_value_type: the GType of the value to skip @var_args: the va_list variable; it may be evaluated multiple times
Skip an argument of type @_value_type from @var_args.
Definition at line 184 of file gvaluecollector.h.
#define G_VALUE_LCOPY | ( | value, | |
var_args, | |||
flags, | |||
__error ) |
G_VALUE_LCOPY: @value: a GValue to store into the @var_args; this must be initialized and set @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 message if something fails
Stores a value’s value into one or more argument locations from a va_list
.
This is the inverse of G_VALUE_COLLECT().
Definition at line 228 of file gvaluecollector.h.
anonymous enum |
Enumerator | |
---|---|
G_VALUE_COLLECT_INT | |
G_VALUE_COLLECT_LONG | |
G_VALUE_COLLECT_INT64 | |
G_VALUE_COLLECT_DOUBLE | |
G_VALUE_COLLECT_POINTER |
Definition at line 34 of file gvaluecollector.h.