GIRepository.BaseInfo
Description: Reference for GIRepository.BaseInfo

### Class

# GIRepositoryBaseInfo

since: 2.80

#### Description [src]

    abstract class GIRepository.BaseInfo : GObject.TypeInstance
    {
      /* No available fields */
    }

`GIBaseInfo` is the common base struct of all other Info structs accessible through the `GIRepository` API.

All info structures can be cast to a `GIBaseInfo`, for instance:

       GIFunctionInfo *function_info = …;
       GIBaseInfo *info = (GIBaseInfo *) function_info;

Most `GIRepository` APIs returning a `GIBaseInfo` are actually creating a new struct; in other words, `gi_base_info_unref()` has to be called when done accessing the data.

`GIBaseInfo` structuress are normally accessed by calling either `gi_repository_find_by_name()`, `gi_repository_find_by_gtype()` or `gi_repository_get_info()`.

    GIBaseInfo *button_info =
      gi_repository_find_by_name (NULL, "Gtk", "Button");

    // use button_info…

    gi_base_info_unref (button_info);

Available since: 2.80

#### Descendants

- GIArgInfo
- GICallableInfo
- GIConstantInfo
- GIFieldInfo
- GIPropertyInfo
- GIRegisteredTypeInfo
- GITypeInfo
- GIUnresolvedInfo
- GIValueInfo

#### Instance methods

###### gi_base_info_clear

Clears memory allocated internally by a stack-allocated `GIBaseInfo`.

since: 2.80

###### gi_base_info_equal

Compare two `GIBaseInfo`s.

since: 2.80

###### gi_base_info_get_attribute

Retrieve an arbitrary attribute associated with this node.

since: 2.80

###### gi_base_info_get_container

Obtain the container of the `info`.

since: 2.80

###### gi_base_info_get_name

Obtain the name of the `info`.

since: 2.80

###### gi_base_info_get_namespace

Obtain the namespace of `info`.

since: 2.80

###### gi_base_info_get_typelib

Obtain the typelib this `info` belongs to.

since: 2.80

###### gi_base_info_is_deprecated

Obtain whether the `info` is represents a metadata which is deprecated.

since: 2.80

###### gi_base_info_iterate_attributes

Iterate over all attributes associated with this node.

since: 2.80

###### gi_base_info_ref

Increases the reference count of `info`.

since: 2.80

###### gi_base_info_unref

Decreases the reference count of `info`. When its reference count drops to 0, the info is freed.

since: 2.80

#### Class structure

    struct GIRepositoryBaseInfoClass {
      /* no available fields */
    }

No description available.