Method
GioFilefind_enclosing_mount
Declaration
GMount*
g_file_find_enclosing_mount (
GFile* file,
GCancellable* cancellable,
GError** error
)
Description
Gets a GMount
for the GFile
.
GMount
is returned only for user interesting locations, see
GVolumeMonitor
. If the GFileIface
for file
does not have a #mount,
error
will be set to G_IO_ERROR_NOT_FOUND
and NULL
#will be returned.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error G_IO_ERROR_CANCELLED
will be returned.
Parameters
cancellable |
GCancellable |
Optional |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | GMount |
A |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. |