Function

Giounix_mount_at

Declaration [src]

GUnixMountEntry*
g_unix_mount_at (
  const char* mount_path,
  guint64* time_read
)

Description [src]

Gets a GUnixMountEntry for a given mount 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_mounts_changed_since().

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.

Parameters

mount_path const char*
 

Path for a possible unix mount.

 The data is owned by the caller of the function.
 The string is a file system path, using the OS encoding.
time_read guint64*
 

Guint64 to contain a timestamp.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.

Return value

Returns: GUnixMountEntry
 

A GUnixMountEntry.

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