Function

GioUnixmount_for

deprecated: 2.84 since: 2.52

Declaration [src]

GUnixMountEntry*
g_unix_mount_for (
  const char* file_path,
  guint64* time_read
)

Description [src]

Gets a GUnixMountEntry for a given file path.

If time_read is set, it will be filled with a Unix timestamp for checking if the mounts have changed since with g_unix_mount_entries_changed_since().

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.

Available since: 2.52

Deprecated since: 2.84

Use g_unix_mount_entry_for() instead.

Parameters

file_path

Type: const char*

File path on some Unix mount.

The data is owned by the caller of the function.
The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.
time_read

Type: guint64*

Return location for a timestamp.

The argument will be set by the function.
The argument can be NULL.

Return value

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.