mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-09 20:43:18 +01: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:
@@ -2361,7 +2361,7 @@ g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
|
||||
*
|
||||
* As the name suggests, this function is not available on Windows.
|
||||
*
|
||||
* Returns: an opaque tag
|
||||
* Returns: (not nullable): an opaque tag
|
||||
*
|
||||
* Since: 2.36
|
||||
**/
|
||||
@@ -2401,7 +2401,7 @@ g_source_add_unix_fd (GSource *source,
|
||||
/**
|
||||
* g_source_modify_unix_fd:
|
||||
* @source: a #GSource
|
||||
* @tag: the tag from g_source_add_unix_fd()
|
||||
* @tag: (not nullable): the tag from g_source_add_unix_fd()
|
||||
* @new_events: the new event mask to watch
|
||||
*
|
||||
* Updates the event mask to watch for the fd identified by @tag.
|
||||
@@ -2441,7 +2441,7 @@ g_source_modify_unix_fd (GSource *source,
|
||||
/**
|
||||
* g_source_remove_unix_fd:
|
||||
* @source: a #GSource
|
||||
* @tag: the tag from g_source_add_unix_fd()
|
||||
* @tag: (not nullable): the tag from g_source_add_unix_fd()
|
||||
*
|
||||
* Reverses the effect of a previous call to g_source_add_unix_fd().
|
||||
*
|
||||
@@ -2488,7 +2488,7 @@ g_source_remove_unix_fd (GSource *source,
|
||||
/**
|
||||
* g_source_query_unix_fd:
|
||||
* @source: a #GSource
|
||||
* @tag: the tag from g_source_add_unix_fd()
|
||||
* @tag: (not nullable): the tag from g_source_add_unix_fd()
|
||||
*
|
||||
* Queries the events reported for the fd corresponding to @tag on
|
||||
* @source during the last poll.
|
||||
|
||||
Reference in New Issue
Block a user