Function

GObject-2.0GObjectenum_complete_type_info

  • This function is meant to be called from the complete_type_info function of a GObject.TypePlugin implementation, as in the following example:

    static void
    my_enum_complete_type_info (GTypePlugin *plugin,
    GType g_type,
    GTypeInfo *info,
    GTypeValueTable *value_table)
    {
    static const GEnumValue values[] = {
    { MY_ENUM_FOO, "MY_ENUM_FOO", "foo" },
    { MY_ENUM_BAR, "MY_ENUM_BAR", "bar" },
    { 0, NULL, NULL }
    };

    g_enum_complete_type_info (type, info, values);
    }

    Parameters

    • g_enum_type: GType

      the type identifier of the type being completed

    • const_values: EnumValue[]

      An array of GObject.EnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0.

    Returns TypeInfo