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
Instance methods
gi_base_info_is_deprecated
Obtain whether the info
is represents a metadata which is deprecated.
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