mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 02:17:51 +02:00
introspection: use (nullable) or (optional) instead of (allow-none)
If we have an input parameter (or return value) we need to use (nullable). However, if it is an (inout) or (out) parameter, (optional) is sufficient. It looks like (nullable) could be used for everything according to the Annotation documentation, but (optional) is more specific.
This commit is contained in:
@@ -670,7 +670,7 @@ g_module_open (const gchar *file_name,
|
||||
|
||||
/**
|
||||
* g_module_open:
|
||||
* @file_name: (allow-none): the name of the file containing the module, or %NULL
|
||||
* @file_name: (nullable): the name of the file containing the module, or %NULL
|
||||
* to obtain a #GModule representing the main program itself
|
||||
* @flags: the flags used for opening the module. This can be the
|
||||
* logical OR of any of the #GModuleFlags
|
||||
@@ -891,7 +891,7 @@ g_module_name (GModule *module)
|
||||
|
||||
/**
|
||||
* g_module_build_path:
|
||||
* @directory: (allow-none): the directory where the module is. This can be
|
||||
* @directory: (nullable): the directory where the module is. This can be
|
||||
* %NULL or the empty string to indicate that the standard platform-specific
|
||||
* directories will be used, though that is not recommended
|
||||
* @module_name: the name of the module
|
||||
|
Reference in New Issue
Block a user