## GIConstantInfo

GIConstantInfo — Struct representing a constant

## Synopsis

    #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);

## Description

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()`.

## Struct hierarchy

      GIBaseInfo
       +----GIConstantInfo

## Details

### GI_IS_CONSTANT_INFO()

    #define             GI_IS_CONSTANT_INFO(info)

`info` : |

### GIConstantInfo

    typedef GIBaseInfo GIConstantInfo;

Represents a constant.

### g_constant_info_get_type ()

    GITypeInfo *        g_constant_info_get_type            (GIConstantInfo *info);

Obtain the type of the constant as a GITypeInfo.

`info` : | a GIConstantInfo
Returns : | the GITypeInfo. Free the struct by calling `g_base_info_unref()` when done. [transfer full]

### g_constant_info_get_value ()

    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.

`info` : | a GIConstantInfo
`value` : | an argument. [out]
Returns : | size of the constant