mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 14:13:41 +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:
@@ -426,7 +426,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -444,7 +444,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -461,7 +461,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -478,7 +478,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -495,7 +495,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -512,7 +512,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -529,7 +529,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -546,7 +546,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -563,7 +563,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -580,7 +580,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -597,7 +597,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -614,7 +614,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -631,7 +631,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -648,7 +648,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -665,7 +665,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -682,7 +682,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -699,7 +699,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -716,7 +716,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -733,7 +733,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -750,7 +750,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -767,7 +767,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
@@ -784,7 +784,7 @@
|
||||
* @return_value: (allow-none): a #GValue to store the return
|
||||
* value. May be %NULL if the callback of @closure doesn't return a
|
||||
* value.
|
||||
* @instance: the instance on which the closure is invoked.
|
||||
* @instance: (type GObject.TypeInstance): the instance on which the closure is invoked.
|
||||
* @args: va_list of arguments to be passed to the closure.
|
||||
* @marshal_data: (allow-none): additional data specified when
|
||||
* registering the marshaller, see g_closure_set_marshal() and
|
||||
|
Reference in New Issue
Block a user