mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
gibaseinfo: Change argument type for gi_type_info_init()
Make it take a `GITypeInfo` rather than a `GIBaseInfo`, because that’s what it actually operates on. This is an internal API, so this isn’t an API break. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3218
This commit is contained in:
@@ -465,8 +465,23 @@ gi_type_info_new (GIBaseInfo *container,
|
||||
(type->flags.reserved == 0 && type->flags.reserved2 == 0) ? offset : type->offset);
|
||||
}
|
||||
|
||||
/*< private >
|
||||
* gi_type_info_init:
|
||||
* @info: (out caller-allocates): caller-allocated #GITypeInfo to populate
|
||||
* @container: (nullable): info which contains this one
|
||||
* @typelib: typelib containing the info
|
||||
* @offset: offset of the info within @typelib, in bytes
|
||||
*
|
||||
* Initialise a stack-allocated #GITypeInfo representing an object of type
|
||||
* [type@GIRepository.TypeInfo] from @offset of @typelib.
|
||||
*
|
||||
* This is a specialised form of [func@GIRepository.info_init] for type
|
||||
* information.
|
||||
*
|
||||
* Since: 2.80
|
||||
*/
|
||||
void
|
||||
gi_type_info_init (GIBaseInfo *info,
|
||||
gi_type_info_init (GITypeInfo *info,
|
||||
GIBaseInfo *container,
|
||||
GITypelib *typelib,
|
||||
uint32_t offset)
|
||||
|
Reference in New Issue
Block a user