mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
giregisteredtypeinfo: Make abstract and add subtypes
There are various info types which were previously treated as subtypes of `GIRegisteredTypeInfo` by the runtime type system in the old version of libgirepository. Change the new type tree to reflect that, making several types now be subtypes of `GIRegisteredTypeInfo`, and making `GIRegisteredTypeInfo` abstract. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3216
This commit is contained in:
parent
7228c6d3e0
commit
a99a35ab39
@ -289,14 +289,14 @@ gi_base_info_init_types (void)
|
||||
{ GI_INFO_TYPE_CALLABLE, "GICallableInfo", sizeof (GICallableInfo), gi_callable_info_class_init, 0, G_TYPE_FLAG_ABSTRACT },
|
||||
{ GI_INFO_TYPE_FUNCTION, "GIFunctionInfo", sizeof (GIFunctionInfo), gi_function_info_class_init, GI_INFO_TYPE_CALLABLE, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_CALLBACK, "GICallbackInfo", sizeof (GICallbackInfo), gi_callback_info_class_init, GI_INFO_TYPE_CALLABLE, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_REGISTERED_TYPE, "GIRegisteredTypeInfo", sizeof (GIRegisteredTypeInfo), gi_registered_type_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_STRUCT, "GIStructInfo", sizeof (GIStructInfo), gi_struct_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_UNION, "GIUnionInfo", sizeof (GIUnionInfo), gi_union_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_ENUM, "GIEnumInfo", sizeof (GIEnumInfo), gi_enum_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_REGISTERED_TYPE, "GIRegisteredTypeInfo", sizeof (GIRegisteredTypeInfo), gi_registered_type_info_class_init, 0, G_TYPE_FLAG_ABSTRACT },
|
||||
{ GI_INFO_TYPE_STRUCT, "GIStructInfo", sizeof (GIStructInfo), gi_struct_info_class_init, GI_INFO_TYPE_REGISTERED_TYPE, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_UNION, "GIUnionInfo", sizeof (GIUnionInfo), gi_union_info_class_init, GI_INFO_TYPE_REGISTERED_TYPE, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_ENUM, "GIEnumInfo", sizeof (GIEnumInfo), gi_enum_info_class_init, GI_INFO_TYPE_REGISTERED_TYPE, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_FLAGS, "GIFlagsInfo", sizeof (GIFlagsInfo), gi_flags_info_class_init, GI_INFO_TYPE_ENUM, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_OBJECT, "GIObjectInfo", sizeof (GIObjectInfo), gi_object_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_INTERFACE, "GIInterfaceInfo", sizeof (GIInterfaceInfo), gi_interface_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_BOXED, "GIBoxedInfo", sizeof (GIBoxedInfo), gi_boxed_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_OBJECT, "GIObjectInfo", sizeof (GIObjectInfo), gi_object_info_class_init, GI_INFO_TYPE_REGISTERED_TYPE, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_INTERFACE, "GIInterfaceInfo", sizeof (GIInterfaceInfo), gi_interface_info_class_init, GI_INFO_TYPE_REGISTERED_TYPE, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_BOXED, "GIBoxedInfo", sizeof (GIBoxedInfo), gi_boxed_info_class_init, GI_INFO_TYPE_REGISTERED_TYPE, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_CONSTANT, "GIConstantInfo", sizeof (GIConstantInfo), gi_constant_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_VALUE, "GIValueInfo", sizeof (GIValueInfo), gi_value_info_class_init, 0, G_TYPE_FLAG_NONE },
|
||||
{ GI_INFO_TYPE_SIGNAL, "GISignalInfo", sizeof (GISignalInfo), gi_signal_info_class_init, GI_INFO_TYPE_CALLABLE, G_TYPE_FLAG_NONE },
|
||||
|
@ -92,7 +92,7 @@ void gi_registered_type_info_class_init (gpointer g_class,
|
||||
|
||||
struct _GIStructInfo
|
||||
{
|
||||
GIBaseInfo parent;
|
||||
GIRegisteredTypeInfo parent;
|
||||
};
|
||||
|
||||
void gi_struct_info_class_init (gpointer g_class,
|
||||
@ -100,7 +100,7 @@ void gi_struct_info_class_init (gpointer g_class,
|
||||
|
||||
struct _GIUnionInfo
|
||||
{
|
||||
GIBaseInfo parent;
|
||||
GIRegisteredTypeInfo parent;
|
||||
};
|
||||
|
||||
void gi_union_info_class_init (gpointer g_class,
|
||||
@ -108,7 +108,7 @@ void gi_union_info_class_init (gpointer g_class,
|
||||
|
||||
struct _GIEnumInfo
|
||||
{
|
||||
GIBaseInfo parent;
|
||||
GIRegisteredTypeInfo parent;
|
||||
};
|
||||
|
||||
void gi_enum_info_class_init (gpointer g_class,
|
||||
@ -124,7 +124,7 @@ void gi_flags_info_class_init (gpointer g_class,
|
||||
|
||||
struct _GIObjectInfo
|
||||
{
|
||||
GIBaseInfo parent;
|
||||
GIRegisteredTypeInfo parent;
|
||||
};
|
||||
|
||||
void gi_object_info_class_init (gpointer g_class,
|
||||
@ -140,7 +140,7 @@ void gi_interface_info_class_init (gpointer g_class,
|
||||
|
||||
struct _GIBoxedInfo
|
||||
{
|
||||
GIBaseInfo parent;
|
||||
GIRegisteredTypeInfo parent;
|
||||
};
|
||||
|
||||
void gi_boxed_info_class_init (gpointer g_class,
|
||||
|
Loading…
Reference in New Issue
Block a user