![]() |
![]() |
![]() |
GObject Introspection Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GI_IS_CONSTANT_INFO (info) typedef GIConstantInfo; 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()
.
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.
|
a GIConstantInfo |
|
an argument. [out] |
Returns : |
size of the constant |