GIBaseInfo

GIBaseInfo — Base struct for all GITypelib structs

Synopsis

enum                GIInfoType;
const gchar *       g_info_type_to_string               (GIInfoType type);
                    GIAttributeIter;
typedef             GIBaseInfo;
GIBaseInfo *        g_base_info_ref                     (GIBaseInfo *info);
void                g_base_info_unref                   (GIBaseInfo *info);
GIInfoType          g_base_info_get_type                (GIBaseInfo *info);
const gchar *       g_base_info_get_name                (GIBaseInfo *info);
const gchar *       g_base_info_get_namespace           (GIBaseInfo *info);
gboolean            g_base_info_is_deprecated           (GIBaseInfo *info);
const gchar *       g_base_info_get_attribute           (GIBaseInfo *info,
                                                         const gchar *name);
gboolean            g_base_info_iterate_attributes      (GIBaseInfo *info,
                                                         GIAttributeIter *iterator,
                                                         char **name,
                                                         char **value);
GIBaseInfo *        g_base_info_get_container           (GIBaseInfo *info);
GITypelib *         g_base_info_get_typelib             (GIBaseInfo *info);
gboolean            g_base_info_equal                   (GIBaseInfo *info1,
                                                         GIBaseInfo *info2);

Description

GIBaseInfo is the common base struct of all other *Info structs accessible through the GIRepository API. All other structs can be casted to a GIBaseInfo, for instance:

Example 1. Casting a GIFunctionInfo to GIBaseInfo

1
2
3
4
5