Top | Description | ![]() |
![]() |
![]() |
![]() |
#define GI_IS_CONSTANT_INFO (info) typedef GIConstantInfo; void g_constant_info_free_value (GIConstantInfo *info
,GIArgument *value
); GITypeInfo * g_constant_info_get_type (GIConstantInfo *info
); gint g_constant_info_get_value (GIConstantInfo *info
,GIArgument *value
);
GIConstantInfo represents a constant. A constant has a type associated
which can be obtained by calling g_constant_info_get_type()
and a value,
which can be obtained by calling g_constant_info_get_value()
.
#define GI_IS_CONSTANT_INFO(info)
Checks if info
is a GIConstantInfo.
|
an info structure |
void g_constant_info_free_value (GIConstantInfo *info
,GIArgument *value
);
Free the value returned from g_constant_info_get_value()
.
|
a GIConstantInfo |
|
the argument |
Since 1.30.1
GITypeInfo * g_constant_info_get_type (GIConstantInfo *info
);
Obtain the type of the constant as a GITypeInfo.
|
a GIConstantInfo |
Returns : |
the GITypeInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
gint g_constant_info_get_value (GIConstantInfo *info
,GIArgument *value
);
Obtain the value associated with the GIConstantInfo and store it in the
value
parameter. argument
needs to be allocated before passing it in.
The size of the constant value stored in argument
will be returned.
Free the value with g_constant_info_free_value()
.
|
a GIConstantInfo |
|
an argument. [out] |
Returns : |
size of the constant |