diff options
author | Ondrej Holy <oholy@redhat.com> | 2021-06-15 15:29:58 +0000 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2021-06-15 15:29:58 +0000 |
commit | 757cc93520b2559b58fa51c75a5eb9d4cf2485cb (patch) | |
tree | b8554b82a0b2f8107e2c3661115fdffe7864ed40 | |
parent | 031e5020ee80f6ae7fa43b5e4db2b53cfa8465d3 (diff) | |
parent | 0362bf5d64a4b1cb0b0ad0b49e230d4ba526cc69 (diff) | |
download | glib-757cc93520b2559b58fa51c75a5eb9d4cf2485cb.tar.gz |
Merge branch 'unix-mount-for-docs' into 'main'
gunixmounts: Document NULL return value for g_unix_mount_for()
See merge request GNOME/glib!2145
-rw-r--r-- | gio/gunixmounts.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 819a44bed..46a41fc41 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -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 doesn’t exist or there is an I/O error. + * * Returns: (transfer full) (nullable): a #GUnixMountEntry. * * Since: 2.52 |