gibaseinfo: Make gi_info_init() take a GType rather than a GIInfoType

This is one more step towards removing `GIInfoType`, and will also help
in a following commit which will directly make use of the `GType`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3218
This commit is contained in:
Philip Withnall 2024-01-23 18:06:08 +00:00
parent c8c1febc7d
commit eb94acce21
3 changed files with 4 additions and 4 deletions

View File

@ -397,7 +397,7 @@ gi_info_new (GIInfoType type,
*/
void
gi_info_init (GIRealInfo *info,
GIInfoType type,
GType type,
GIRepository *repository,
GIBaseInfo *container,
GITypelib *typelib,
@ -489,7 +489,7 @@ gi_type_info_init (GITypeInfo *info,
GIRealInfo *rinfo = (GIRealInfo*)container;
SimpleTypeBlob *type = (SimpleTypeBlob *)&typelib->data[offset];
gi_info_init ((GIRealInfo*)info, GI_INFO_TYPE_TYPE, rinfo->repository, container, typelib,
gi_info_init ((GIRealInfo*)info, GI_TYPE_TYPE_INFO, rinfo->repository, container, typelib,
(type->flags.reserved == 0 && type->flags.reserved2 == 0) ? offset : type->offset);
}

View File

@ -407,7 +407,7 @@ gi_callable_info_load_arg (GICallableInfo *info,
offset = signature_offset (info);
header = (Header *)rinfo->typelib->data;
gi_info_init ((GIRealInfo*)arg, GI_INFO_TYPE_ARG, rinfo->repository, (GIBaseInfo*)info, rinfo->typelib,
gi_info_init ((GIRealInfo*)arg, GI_TYPE_ARG_INFO, rinfo->repository, (GIBaseInfo*)info, rinfo->typelib,
offset + header->signature_blob_size + n * header->arg_blob_size);
}

View File

@ -223,7 +223,7 @@ void gi_unresolved_info_class_init (gpointer g_class,
gpointer class_data);
void gi_info_init (GIRealInfo *info,
GIInfoType type,
GType type,
GIRepository *repository,
GIBaseInfo *container,
GITypelib *typelib,