Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- canEject
- canUnmount
- eject
- ejectFinish
- ejectWithOperation
- ejectWithOperationFinish
- getDefaultLocation
- getDrive
- getIcon
- getName
- getRoot
- getSortKey
- getSymbolicIcon
- getUuid
- getVolume
- guessContentType
- guessContentTypeFinish
- guessContentTypeSync
- isShadowed
- remount
- remountFinish
- shadow
- unmount
- unmountFinish
- unmountWithOperation
- unmountWithOperationFinish
- unshadow
- Signals
The Mount
interface represents user-visible mounts. Note, when
porting from GnomeVFS, Mount
is the moral equivalent of GnomeVFSVolume
.
Mount
is a "mounted" filesystem that you can access. Mounted is in
quotes because it's not the same as a unix mount, it might be a gvfs
mount, but you can still access the files on it if you use GIO. Might or
might not be related to a volume object.
Unmounting a Mount
instance is an asynchronous operation. For
more information about asynchronous operations, see AsyncResult
and Task
. To unmount a Mount
instance, first call
mountUnmountWithOperation
with (at least) the Mount
instance and a
AsyncReadyCallback
. The callback will be fired when the
operation has resolved (either with success or failure), and a
GAsyncReady
structure will be passed to the callback. That
callback should then call mountUnmountWithOperationFinish
with the Mount
and the GAsyncReady
data to see if the operation was completed
successfully. If an error
is present when mountUnmountWithOperationFinish
is called, then it will be filled with any error information.
- newtype Mount = Mount (ManagedPtr Mount)
- noMount :: Maybe Mount
- class GObject o => IsMount o
- toMount :: IsMount o => o -> IO Mount
- data MountCanEjectMethodInfo
- mountCanEject :: (HasCallStack, MonadIO m, IsMount a) => a -> m Bool
- data MountCanUnmountMethodInfo
- mountCanUnmount :: (HasCallStack, MonadIO m, IsMount a) => a -> m Bool
- data MountEjectMethodInfo
- mountEject :: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) => a -> [MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data MountEjectFinishMethodInfo
- mountEjectFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountEjectWithOperationMethodInfo
- mountEjectWithOperation :: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data MountEjectWithOperationFinishMethodInfo
- mountEjectWithOperationFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountGetDefaultLocationMethodInfo
- mountGetDefaultLocation :: (HasCallStack, MonadIO m, IsMount a) => a -> m File
- data MountGetDriveMethodInfo
- mountGetDrive :: (HasCallStack, MonadIO m, IsMount a) => a -> m Drive
- data MountGetIconMethodInfo
- mountGetIcon :: (HasCallStack, MonadIO m, IsMount a) => a -> m Icon
- data MountGetNameMethodInfo
- mountGetName :: (HasCallStack, MonadIO m, IsMount a) => a -> m Text
- data MountGetRootMethodInfo
- mountGetRoot :: (HasCallStack, MonadIO m, IsMount a) => a -> m File
- data MountGetSortKeyMethodInfo
- mountGetSortKey :: (HasCallStack, MonadIO m, IsMount a) => a -> m Text
- data MountGetSymbolicIconMethodInfo
- mountGetSymbolicIcon :: (HasCallStack, MonadIO m, IsMount a) => a -> m Icon
- data MountGetUuidMethodInfo
- mountGetUuid :: (HasCallStack, MonadIO m, IsMount a) => a -> m Text
- data MountGetVolumeMethodInfo
- mountGetVolume :: (HasCallStack, MonadIO m, IsMount a) => a -> m Volume
- data MountGuessContentTypeMethodInfo
- mountGuessContentType :: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) => a -> Bool -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data MountGuessContentTypeFinishMethodInfo
- mountGuessContentTypeFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m [Text]
- data MountGuessContentTypeSyncMethodInfo
- mountGuessContentTypeSync :: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) => a -> Bool -> Maybe b -> m [Text]
- data MountIsShadowedMethodInfo
- mountIsShadowed :: (HasCallStack, MonadIO m, IsMount a) => a -> m Bool
- data MountRemountMethodInfo
- mountRemount :: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => a -> [MountMountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data MountRemountFinishMethodInfo
- mountRemountFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountShadowMethodInfo
- mountShadow :: (HasCallStack, MonadIO m, IsMount a) => a -> m ()
- data MountUnmountMethodInfo
- mountUnmount :: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) => a -> [MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data MountUnmountFinishMethodInfo
- mountUnmountFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountUnmountWithOperationMethodInfo
- mountUnmountWithOperation :: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data MountUnmountWithOperationFinishMethodInfo
- mountUnmountWithOperationFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountUnshadowMethodInfo
- mountUnshadow :: (HasCallStack, MonadIO m, IsMount a) => a -> m ()
- type C_MountChangedCallback = Ptr () -> Ptr () -> IO ()
- type MountChangedCallback = IO ()
- data MountChangedSignalInfo
- afterMountChanged :: (GObject a, MonadIO m) => a -> MountChangedCallback -> m SignalHandlerId
- genClosure_MountChanged :: MountChangedCallback -> IO Closure
- mk_MountChangedCallback :: C_MountChangedCallback -> IO (FunPtr C_MountChangedCallback)
- noMountChangedCallback :: Maybe MountChangedCallback
- onMountChanged :: (GObject a, MonadIO m) => a -> MountChangedCallback -> m SignalHandlerId
- wrap_MountChangedCallback :: MountChangedCallback -> Ptr () -> Ptr () -> IO ()
- type C_MountPreUnmountCallback = Ptr () -> Ptr () -> IO ()
- type MountPreUnmountCallback = IO ()
- data MountPreUnmountSignalInfo
- afterMountPreUnmount :: (GObject a, MonadIO m) => a -> MountPreUnmountCallback -> m SignalHandlerId
- genClosure_MountPreUnmount :: MountPreUnmountCallback -> IO Closure
- mk_MountPreUnmountCallback :: C_MountPreUnmountCallback -> IO (FunPtr C_MountPreUnmountCallback)
- noMountPreUnmountCallback :: Maybe MountPreUnmountCallback
- onMountPreUnmount :: (GObject a, MonadIO m) => a -> MountPreUnmountCallback -> m SignalHandlerId
- wrap_MountPreUnmountCallback :: MountPreUnmountCallback -> Ptr () -> Ptr () -> IO ()
- type C_MountUnmountedCallback = Ptr () -> Ptr () -> IO ()
- type MountUnmountedCallback = IO ()
- data MountUnmountedSignalInfo
- afterMountUnmounted :: (GObject a, MonadIO m) => a -> MountUnmountedCallback -> m SignalHandlerId
- genClosure_MountUnmounted :: MountUnmountedCallback -> IO Closure
- mk_MountUnmountedCallback :: C_MountUnmountedCallback -> IO (FunPtr C_MountUnmountedCallback)
- noMountUnmountedCallback :: Maybe MountUnmountedCallback
- onMountUnmounted :: (GObject a, MonadIO m) => a -> MountUnmountedCallback -> m SignalHandlerId
- wrap_MountUnmountedCallback :: MountUnmountedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
GObject Mount Source # | |
IsObject Mount Source # | |
IsMount Mount Source # | |
((~) * info (ResolveMountMethod t Mount), MethodInfo * info Mount p) => IsLabel t (Mount -> p) Source # | |
((~) * info (ResolveMountMethod t Mount), MethodInfo * info Mount p) => IsLabelProxy t (Mount -> p) Source # | |
HasAttributeList * Mount Source # | |
type AttributeList Mount Source # | |
type SignalList Mount Source # | |
Methods
canEject
data MountCanEjectMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsMount a) => MethodInfo * MountCanEjectMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Bool | Returns: |
Checks if mount
can be eject.
canUnmount
data MountCanUnmountMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsMount a) => MethodInfo * MountCanUnmountMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Bool | Returns: |
Checks if mount
can be mounted.
eject
data MountEjectMethodInfo Source #
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsCancellable b) => MethodInfo * MountEjectMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 2.22)Use mountEjectWithOperation
instead.
Ejects a mount. This is an asynchronous operation, and is
finished by calling mountEjectFinish
with the mount
and AsyncResult
data returned in the callback
.
ejectFinish
data MountEjectFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => MethodInfo * MountEjectFinishMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Deprecated: (Since version 2.22)Use mountEjectWithOperationFinish
instead.
Finishes ejecting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
ejectWithOperation
data MountEjectWithOperationMethodInfo Source #
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => MethodInfo * MountEjectWithOperationMethodInfo a signature Source # | |
mountEjectWithOperation Source #
:: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Ejects a mount. This is an asynchronous operation, and is
finished by calling mountEjectWithOperationFinish
with the mount
and AsyncResult
data returned in the callback
.
Since: 2.22
ejectWithOperationFinish
data MountEjectWithOperationFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => MethodInfo * MountEjectWithOperationFinishMethodInfo a signature Source # | |
mountEjectWithOperationFinish Source #
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes ejecting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
Since: 2.22
getDefaultLocation
data MountGetDefaultLocationMethodInfo Source #
((~) * signature (m File), MonadIO m, IsMount a) => MethodInfo * MountGetDefaultLocationMethodInfo a signature Source # | |
mountGetDefaultLocation Source #
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m File | Returns: a |
Gets the default location of mount
. The default location of the given
mount
is a path that reflects the main entry point for the user (e.g.
the home directory, or the root of the volume).
getDrive
data MountGetDriveMethodInfo Source #
((~) * signature (m Drive), MonadIO m, IsMount a) => MethodInfo * MountGetDriveMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Drive | Returns: a |
getIcon
data MountGetIconMethodInfo Source #
((~) * signature (m Icon), MonadIO m, IsMount a) => MethodInfo * MountGetIconMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Icon | Returns: a |
Gets the icon for mount
.
getName
data MountGetNameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsMount a) => MethodInfo * MountGetNameMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Text | Returns: the name for the given |
Gets the name of mount
.
getRoot
data MountGetRootMethodInfo Source #
((~) * signature (m File), MonadIO m, IsMount a) => MethodInfo * MountGetRootMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m File | Returns: a |
Gets the root directory on mount
.
getSortKey
data MountGetSortKeyMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsMount a) => MethodInfo * MountGetSortKeyMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Text | Returns: Sorting key for |
Gets the sort key for mount
, if any.
Since: 2.32
getSymbolicIcon
data MountGetSymbolicIconMethodInfo Source #
((~) * signature (m Icon), MonadIO m, IsMount a) => MethodInfo * MountGetSymbolicIconMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Icon | Returns: a |
Gets the symbolic icon for mount
.
Since: 2.34
getUuid
data MountGetUuidMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsMount a) => MethodInfo * MountGetUuidMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Text | Returns: the UUID for |
Gets the UUID for the mount
. The reference is typically based on
the file system UUID for the mount in question and should be
considered an opaque string. Returns Nothing
if there is no UUID
available.
getVolume
data MountGetVolumeMethodInfo Source #
((~) * signature (m Volume), MonadIO m, IsMount a) => MethodInfo * MountGetVolumeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Volume | Returns: a |
Gets the volume for the mount
.
guessContentType
data MountGuessContentTypeMethodInfo Source #
((~) * signature (Bool -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsCancellable b) => MethodInfo * MountGuessContentTypeMethodInfo a signature Source # | |
mountGuessContentType Source #
:: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) | |
=> a |
|
-> Bool |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Tries to guess the type of content stored on mount
. Returns one or
more textual identifiers of well-known content types (typically
prefixed with "x-content/"), e.g. x-content/image-dcf for camera
memory cards. See the
shared-mime-info
specification for more on x-content types.
This is an asynchronous operation (see
mountGuessContentTypeSync
for the synchronous version), and
is finished by calling mountGuessContentTypeFinish
with the
mount
and AsyncResult
data returned in the callback
.
Since: 2.18
guessContentTypeFinish
data MountGuessContentTypeFinishMethodInfo Source #
((~) * signature (b -> m [Text]), MonadIO m, IsMount a, IsAsyncResult b) => MethodInfo * MountGuessContentTypeFinishMethodInfo a signature Source # | |
mountGuessContentTypeFinish Source #
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m [Text] | Returns: a |
Finishes guessing content types of mount
. If any errors occurred
during the operation, error
will be set to contain the errors and
False
will be returned. In particular, you may get an
IOErrorEnumNotSupported
if the mount does not support content
guessing.
Since: 2.18
guessContentTypeSync
data MountGuessContentTypeSyncMethodInfo Source #
((~) * signature (Bool -> Maybe b -> m [Text]), MonadIO m, IsMount a, IsCancellable b) => MethodInfo * MountGuessContentTypeSyncMethodInfo a signature Source # | |
mountGuessContentTypeSync Source #
:: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) | |
=> a |
|
-> Bool |
|
-> Maybe b |
|
-> m [Text] | Returns: a |
Tries to guess the type of content stored on mount
. Returns one or
more textual identifiers of well-known content types (typically
prefixed with "x-content/"), e.g. x-content/image-dcf for camera
memory cards. See the
shared-mime-info
specification for more on x-content types.
This is an synchronous operation and as such may block doing IO;
see mountGuessContentType
for the asynchronous version.
Since: 2.18
isShadowed
data MountIsShadowedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsMount a) => MethodInfo * MountIsShadowedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Bool | Returns: |
Determines if mount
is shadowed. Applications or libraries should
avoid displaying mount
in the user interface if it is shadowed.
A mount is said to be shadowed if there exists one or more user
visible objects (currently Mount
objects) with a root that is
inside the root of mount
.
One application of shadow mounts is when exposing a single file
system that is used to address several logical volumes. In this
situation, a VolumeMonitor
implementation would create two
Volume
objects (for example, one for the camera functionality of
the device and one for a SD card reader on the device) with
activation URIs gphoto2://[usb:001,002]/store1/
and gphoto2://[usb:001,002]/store2/
. When the
underlying mount (with root
gphoto2://[usb:001,002]/
) is mounted, said
VolumeMonitor
implementation would create two Mount
objects
(each with their root matching the corresponding volume activation
root) that would shadow the original mount.
The proxy monitor in GVfs 2.26 and later, automatically creates and
manage shadow mounts (and shadows the underlying mount) if the
activation root on a Volume
is set.
Since: 2.20
remount
data MountRemountMethodInfo Source #
((~) * signature ([MountMountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => MethodInfo * MountRemountMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [MountMountFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Remounts a mount. This is an asynchronous operation, and is
finished by calling mountRemountFinish
with the mount
and GAsyncResults
data returned in the callback
.
Remounting is useful when some setting affecting the operation of the volume has been changed, as these may need a remount to take affect. While this is semantically equivalent with unmounting and then remounting not all backends might need to actually be unmounted.
remountFinish
data MountRemountFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => MethodInfo * MountRemountFinishMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes remounting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
shadow
data MountShadowMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsMount a) => MethodInfo * MountShadowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m () |
Increments the shadow count on mount
. Usually used by
VolumeMonitor
implementations when creating a shadow mount for
mount
, see mountIsShadowed
for more information. The caller
will need to emit the Mount
::changed
signal on mount
manually.
Since: 2.20
unmount
data MountUnmountMethodInfo Source #
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsCancellable b) => MethodInfo * MountUnmountMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 2.22)Use mountUnmountWithOperation
instead.
Unmounts a mount. This is an asynchronous operation, and is
finished by calling mountUnmountFinish
with the mount
and AsyncResult
data returned in the callback
.
unmountFinish
data MountUnmountFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => MethodInfo * MountUnmountFinishMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Deprecated: (Since version 2.22)Use mountUnmountWithOperationFinish
instead.
Finishes unmounting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
unmountWithOperation
data MountUnmountWithOperationMethodInfo Source #
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => MethodInfo * MountUnmountWithOperationMethodInfo a signature Source # | |
mountUnmountWithOperation Source #
:: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Unmounts a mount. This is an asynchronous operation, and is
finished by calling mountUnmountWithOperationFinish
with the mount
and AsyncResult
data returned in the callback
.
Since: 2.22
unmountWithOperationFinish
data MountUnmountWithOperationFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => MethodInfo * MountUnmountWithOperationFinishMethodInfo a signature Source # | |
mountUnmountWithOperationFinish Source #
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes unmounting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
Since: 2.22
unshadow
data MountUnshadowMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsMount a) => MethodInfo * MountUnshadowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m () |
Decrements the shadow count on mount
. Usually used by
VolumeMonitor
implementations when destroying a shadow mount for
mount
, see mountIsShadowed
for more information. The caller
will need to emit the Mount
::changed
signal on mount
manually.
Since: 2.20
Signals
changed
type MountChangedCallback = IO () Source #
afterMountChanged :: (GObject a, MonadIO m) => a -> MountChangedCallback -> m SignalHandlerId Source #
onMountChanged :: (GObject a, MonadIO m) => a -> MountChangedCallback -> m SignalHandlerId Source #
wrap_MountChangedCallback :: MountChangedCallback -> Ptr () -> Ptr () -> IO () Source #
preUnmount
type MountPreUnmountCallback = IO () Source #
afterMountPreUnmount :: (GObject a, MonadIO m) => a -> MountPreUnmountCallback -> m SignalHandlerId Source #
mk_MountPreUnmountCallback :: C_MountPreUnmountCallback -> IO (FunPtr C_MountPreUnmountCallback) Source #
onMountPreUnmount :: (GObject a, MonadIO m) => a -> MountPreUnmountCallback -> m SignalHandlerId Source #
wrap_MountPreUnmountCallback :: MountPreUnmountCallback -> Ptr () -> Ptr () -> IO () Source #
unmounted
type MountUnmountedCallback = IO () Source #
afterMountUnmounted :: (GObject a, MonadIO m) => a -> MountUnmountedCallback -> m SignalHandlerId Source #
mk_MountUnmountedCallback :: C_MountUnmountedCallback -> IO (FunPtr C_MountUnmountedCallback) Source #
onMountUnmounted :: (GObject a, MonadIO m) => a -> MountUnmountedCallback -> m SignalHandlerId Source #
wrap_MountUnmountedCallback :: MountUnmountedCallback -> Ptr () -> Ptr () -> IO () Source #