Merge branch 'unix-mount-for-docs' into 'main'

gunixmounts: Document NULL return value for g_unix_mount_for()

See merge request GNOME/glib!2145
This commit is contained in:
Ondrej Holy 2021-06-15 15:29:58 +00:00
commit 757cc93520

View File

@ -1593,6 +1593,8 @@ g_unix_mounts_get (guint64 *time_read)
* If more mounts have the same mount path, the last matching mount
* is returned.
*
* This will return %NULL if there is no mount point at @mount_path.
*
* Returns: (transfer full) (nullable): a #GUnixMountEntry.
**/
GUnixMountEntry *
@ -1636,6 +1638,9 @@ g_unix_mount_at (const char *mount_path,
* If more mounts have the same mount path, the last matching mount
* is returned.
*
* This will return %NULL if looking up the mount entry fails, if
* @file_path doesnt exist or there is an I/O error.
*
* Returns: (transfer full) (nullable): a #GUnixMountEntry.
*
* Since: 2.52