gibaseinfo: Rename gi_info_new() to gi_base_info_new()

It’s actually a factory method rather than a constructor, since
`GIBaseInfo` is abstract, but despite that, changing the name so it sits
inside the `GIBaseInfo` class makes sense. There is no `GIInfo` type.

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

Helps: #3155
This commit is contained in:
Philip Withnall
2024-02-08 10:34:40 +00:00
parent 78698af73f
commit beb59595b7
13 changed files with 59 additions and 58 deletions

View File

@@ -64,8 +64,8 @@ gi_base_info_find_method (GIBaseInfo *base,
const char *fname = (const char *)&rinfo->typelib->data[fblob->name];
if (strcmp (name, fname) == 0)
return (GIFunctionInfo *) gi_info_new (GI_INFO_TYPE_FUNCTION, base,
rinfo->typelib, offset);
return (GIFunctionInfo *) gi_base_info_new (GI_INFO_TYPE_FUNCTION, base,
rinfo->typelib, offset);
offset += header->function_blob_size;
}