mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 00:48:53 +02:00
glib: Add missing (nullable) and (optional) annotations
Add various (nullable) and (optional) annotations which were missing from a variety of functions. Also port a couple of existing (allow-none) annotations in the same files to use (nullable) and (optional) as appropriate instead. Secondly, add various (not nullable) annotations as needed by the new default in gobject-introspection of marking gpointers as (nullable). See https://bugzilla.gnome.org/show_bug.cgi?id=729660. This includes adding some stub documentation comments for the assertion macro error functions, which weren’t previously documented. The new comments are purely to allow for annotations, and hence are marked as (skip) to prevent the symbols appearing in the GIR file. https://bugzilla.gnome.org/show_bug.cgi?id=719966
This commit is contained in:
@@ -4502,7 +4502,8 @@ gobject_init_ctor (void)
|
||||
|
||||
/**
|
||||
* g_type_class_add_private:
|
||||
* @g_class: class structure for an instantiatable type
|
||||
* @g_class: (type GObject.TypeClass): class structure for an instantiatable
|
||||
* type
|
||||
* @private_size: size of private structure
|
||||
*
|
||||
* Registers a private structure for an instantiatable type.
|
||||
@@ -4734,7 +4735,7 @@ g_type_instance_get_private (GTypeInstance *instance,
|
||||
|
||||
/**
|
||||
* g_type_class_get_instance_private_offset: (skip)
|
||||
* @g_class: a #GTypeClass
|
||||
* @g_class: (type GObject.TypeClass): a #GTypeClass
|
||||
*
|
||||
* Gets the offset of the private data for instances of @g_class.
|
||||
*
|
||||
|
Reference in New Issue
Block a user