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
- canPollForMedia
- canStart
- canStartDegraded
- canStop
- eject
- ejectFinish
- ejectWithOperation
- ejectWithOperationFinish
- enumerateIdentifiers
- getIcon
- getIdentifier
- getName
- getSortKey
- getStartStopType
- getSymbolicIcon
- getVolumes
- hasMedia
- hasVolumes
- isMediaCheckAutomatic
- isMediaRemovable
- isRemovable
- pollForMedia
- pollForMediaFinish
- start
- startFinish
- stop
- stopFinish
- Signals
Drive
- this represent a piece of hardware connected to the machine.
It's generally only created for removable hardware or hardware with
removable media.
Drive
is a container class for Volume
objects that stem from
the same piece of media. As such, Drive
abstracts a drive with
(or without) removable media and provides operations for querying
whether media is available, determining whether media change is
automatically detected and ejecting the media.
If the Drive
reports that media isn't automatically detected, one
can poll for media; typically one should not do this periodically
as a poll for media operation is potententially expensive and may
spin up the drive creating noise.
Drive
supports starting and stopping drives with authentication
support for the former. This can be used to support a diverse set
of use cases including connecting/disconnecting iSCSI devices,
powering down external disk enclosures and starting/stopping
multi-disk devices such as RAID devices. Note that the actual
semantics and side-effects of starting/stopping a Drive
may vary
according to implementation. To choose the correct verbs in e.g. a
file manager, use driveGetStartStopType
.
For porting from GnomeVFS note that there is no equivalent of
Drive
in that API.
- newtype Drive = Drive (ManagedPtr Drive)
- noDrive :: Maybe Drive
- class GObject o => IsDrive o
- toDrive :: IsDrive o => o -> IO Drive
- data DriveCanEjectMethodInfo
- driveCanEject :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveCanPollForMediaMethodInfo
- driveCanPollForMedia :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveCanStartMethodInfo
- driveCanStart :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveCanStartDegradedMethodInfo
- driveCanStartDegraded :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveCanStopMethodInfo
- driveCanStop :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveEjectMethodInfo
- driveEject :: (HasCallStack, MonadIO m, IsDrive a, IsCancellable b) => a -> [MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data DriveEjectFinishMethodInfo
- driveEjectFinish :: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) => a -> b -> m ()
- data DriveEjectWithOperationMethodInfo
- driveEjectWithOperation :: (HasCallStack, MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data DriveEjectWithOperationFinishMethodInfo
- driveEjectWithOperationFinish :: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) => a -> b -> m ()
- data DriveEnumerateIdentifiersMethodInfo
- driveEnumerateIdentifiers :: (HasCallStack, MonadIO m, IsDrive a) => a -> m [Text]
- data DriveGetIconMethodInfo
- driveGetIcon :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Icon
- data DriveGetIdentifierMethodInfo
- driveGetIdentifier :: (HasCallStack, MonadIO m, IsDrive a) => a -> Text -> m Text
- data DriveGetNameMethodInfo
- driveGetName :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Text
- data DriveGetSortKeyMethodInfo
- driveGetSortKey :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Text
- data DriveGetStartStopTypeMethodInfo
- driveGetStartStopType :: (HasCallStack, MonadIO m, IsDrive a) => a -> m DriveStartStopType
- data DriveGetSymbolicIconMethodInfo
- driveGetSymbolicIcon :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Icon
- data DriveGetVolumesMethodInfo
- driveGetVolumes :: (HasCallStack, MonadIO m, IsDrive a) => a -> m [Volume]
- data DriveHasMediaMethodInfo
- driveHasMedia :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveHasVolumesMethodInfo
- driveHasVolumes :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveIsMediaCheckAutomaticMethodInfo
- driveIsMediaCheckAutomatic :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveIsMediaRemovableMethodInfo
- driveIsMediaRemovable :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DriveIsRemovableMethodInfo
- driveIsRemovable :: (HasCallStack, MonadIO m, IsDrive a) => a -> m Bool
- data DrivePollForMediaMethodInfo
- drivePollForMedia :: (HasCallStack, MonadIO m, IsDrive a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data DrivePollForMediaFinishMethodInfo
- drivePollForMediaFinish :: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) => a -> b -> m ()
- data DriveStartMethodInfo
- driveStart :: (HasCallStack, MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) => a -> [DriveStartFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data DriveStartFinishMethodInfo
- driveStartFinish :: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) => a -> b -> m ()
- data DriveStopMethodInfo
- driveStop :: (HasCallStack, MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data DriveStopFinishMethodInfo
- driveStopFinish :: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) => a -> b -> m ()
- type C_DriveChangedCallback = Ptr () -> Ptr () -> IO ()
- type DriveChangedCallback = IO ()
- data DriveChangedSignalInfo
- afterDriveChanged :: (IsDrive a, MonadIO m) => a -> DriveChangedCallback -> m SignalHandlerId
- genClosure_DriveChanged :: DriveChangedCallback -> IO Closure
- mk_DriveChangedCallback :: C_DriveChangedCallback -> IO (FunPtr C_DriveChangedCallback)
- noDriveChangedCallback :: Maybe DriveChangedCallback
- onDriveChanged :: (IsDrive a, MonadIO m) => a -> DriveChangedCallback -> m SignalHandlerId
- wrap_DriveChangedCallback :: DriveChangedCallback -> Ptr () -> Ptr () -> IO ()
- type C_DriveDisconnectedCallback = Ptr () -> Ptr () -> IO ()
- type DriveDisconnectedCallback = IO ()
- data DriveDisconnectedSignalInfo
- afterDriveDisconnected :: (IsDrive a, MonadIO m) => a -> DriveDisconnectedCallback -> m SignalHandlerId
- genClosure_DriveDisconnected :: DriveDisconnectedCallback -> IO Closure
- mk_DriveDisconnectedCallback :: C_DriveDisconnectedCallback -> IO (FunPtr C_DriveDisconnectedCallback)
- noDriveDisconnectedCallback :: Maybe DriveDisconnectedCallback
- onDriveDisconnected :: (IsDrive a, MonadIO m) => a -> DriveDisconnectedCallback -> m SignalHandlerId
- wrap_DriveDisconnectedCallback :: DriveDisconnectedCallback -> Ptr () -> Ptr () -> IO ()
- type C_DriveEjectButtonCallback = Ptr () -> Ptr () -> IO ()
- type DriveEjectButtonCallback = IO ()
- data DriveEjectButtonSignalInfo
- afterDriveEjectButton :: (IsDrive a, MonadIO m) => a -> DriveEjectButtonCallback -> m SignalHandlerId
- genClosure_DriveEjectButton :: DriveEjectButtonCallback -> IO Closure
- mk_DriveEjectButtonCallback :: C_DriveEjectButtonCallback -> IO (FunPtr C_DriveEjectButtonCallback)
- noDriveEjectButtonCallback :: Maybe DriveEjectButtonCallback
- onDriveEjectButton :: (IsDrive a, MonadIO m) => a -> DriveEjectButtonCallback -> m SignalHandlerId
- wrap_DriveEjectButtonCallback :: DriveEjectButtonCallback -> Ptr () -> Ptr () -> IO ()
- type C_DriveStopButtonCallback = Ptr () -> Ptr () -> IO ()
- type DriveStopButtonCallback = IO ()
- data DriveStopButtonSignalInfo
- afterDriveStopButton :: (IsDrive a, MonadIO m) => a -> DriveStopButtonCallback -> m SignalHandlerId
- genClosure_DriveStopButton :: DriveStopButtonCallback -> IO Closure
- mk_DriveStopButtonCallback :: C_DriveStopButtonCallback -> IO (FunPtr C_DriveStopButtonCallback)
- noDriveStopButtonCallback :: Maybe DriveStopButtonCallback
- onDriveStopButton :: (IsDrive a, MonadIO m) => a -> DriveStopButtonCallback -> m SignalHandlerId
- wrap_DriveStopButtonCallback :: DriveStopButtonCallback -> Ptr () -> Ptr () -> IO ()
Exported types
GObject Drive Source # | |
IsObject Drive Source # | |
IsDrive Drive Source # | |
((~) * info (ResolveDriveMethod t Drive), MethodInfo * info Drive p) => IsLabel t (Drive -> p) Source # | |
((~) * info (ResolveDriveMethod t Drive), MethodInfo * info Drive p) => IsLabelProxy t (Drive -> p) Source # | |
HasAttributeList * Drive Source # | |
type AttributeList Drive Source # | |
type SignalList Drive Source # | |
Methods
canEject
data DriveCanEjectMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveCanEjectMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool |
Checks if a drive can be ejected.
canPollForMedia
data DriveCanPollForMediaMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveCanPollForMediaMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool | Returns: |
Checks if a drive can be polled for media changes.
canStart
data DriveCanStartMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveCanStartMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool |
Checks if a drive can be started.
Since: 2.22
canStartDegraded
data DriveCanStartDegradedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveCanStartDegradedMethodInfo a signature Source # | |
driveCanStartDegraded Source #
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool | Returns: |
Checks if a drive can be started degraded.
Since: 2.22
canStop
data DriveCanStopMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveCanStopMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool |
Checks if a drive can be stopped.
Since: 2.22
eject
data DriveEjectMethodInfo Source #
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDrive a, IsCancellable b) => MethodInfo * DriveEjectMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a, IsCancellable b) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 2.22)Use driveEjectWithOperation
instead.
Asynchronously ejects a drive.
When the operation is finished, callback
will be called.
You can then call driveEjectFinish
to obtain the
result of the operation.
ejectFinish
data DriveEjectFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsDrive a, IsAsyncResult b) => MethodInfo * DriveEjectFinishMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Deprecated: (Since version 2.22)Use driveEjectWithOperationFinish
instead.
Finishes ejecting a drive.
ejectWithOperation
data DriveEjectWithOperationMethodInfo Source #
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) => MethodInfo * DriveEjectWithOperationMethodInfo a signature Source # | |
driveEjectWithOperation Source #
:: (HasCallStack, MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Ejects a drive. This is an asynchronous operation, and is
finished by calling driveEjectWithOperationFinish
with the drive
and AsyncResult
data returned in the callback
.
Since: 2.22
ejectWithOperationFinish
data DriveEjectWithOperationFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsDrive a, IsAsyncResult b) => MethodInfo * DriveEjectWithOperationFinishMethodInfo a signature Source # | |
driveEjectWithOperationFinish Source #
:: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes ejecting a drive. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
Since: 2.22
enumerateIdentifiers
data DriveEnumerateIdentifiersMethodInfo Source #
((~) * signature (m [Text]), MonadIO m, IsDrive a) => MethodInfo * DriveEnumerateIdentifiersMethodInfo a signature Source # | |
driveEnumerateIdentifiers Source #
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m [Text] | Returns: a |
Gets the kinds of identifiers that drive
has.
Use driveGetIdentifier
to obtain the identifiers
themselves.
getIcon
data DriveGetIconMethodInfo Source #
((~) * signature (m Icon), MonadIO m, IsDrive a) => MethodInfo * DriveGetIconMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Icon | Returns: |
Gets the icon for drive
.
getIdentifier
data DriveGetIdentifierMethodInfo Source #
((~) * signature (Text -> m Text), MonadIO m, IsDrive a) => MethodInfo * DriveGetIdentifierMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> Text |
|
-> m Text | Returns: a newly allocated string containing the
requested identfier, or |
Gets the identifier of the given kind for drive
.
getName
data DriveGetNameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsDrive a) => MethodInfo * DriveGetNameMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Text | Returns: a string containing |
Gets the name of drive
.
getSortKey
data DriveGetSortKeyMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsDrive a) => MethodInfo * DriveGetSortKeyMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Text | Returns: Sorting key for |
Gets the sort key for drive
, if any.
Since: 2.32
getStartStopType
data DriveGetStartStopTypeMethodInfo Source #
((~) * signature (m DriveStartStopType), MonadIO m, IsDrive a) => MethodInfo * DriveGetStartStopTypeMethodInfo a signature Source # | |
driveGetStartStopType Source #
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m DriveStartStopType | Returns: A value from the |
Gets a hint about how a drive can be started/stopped.
Since: 2.22
getSymbolicIcon
data DriveGetSymbolicIconMethodInfo Source #
((~) * signature (m Icon), MonadIO m, IsDrive a) => MethodInfo * DriveGetSymbolicIconMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Icon | Returns: symbolic |
Gets the icon for drive
.
Since: 2.34
getVolumes
data DriveGetVolumesMethodInfo Source #
((~) * signature (m [Volume]), MonadIO m, IsDrive a) => MethodInfo * DriveGetVolumesMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m [Volume] | Returns: |
Get a list of mountable volumes for drive
.
The returned list should be freed with g_list_free()
, after
its elements have been unreffed with objectUnref
.
hasMedia
data DriveHasMediaMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveHasMediaMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool |
Checks if the drive
has media. Note that the OS may not be polling
the drive for media changes; see driveIsMediaCheckAutomatic
for more details.
hasVolumes
data DriveHasVolumesMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveHasVolumesMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool | Returns: |
Check if drive
has any mountable volumes.
isMediaCheckAutomatic
data DriveIsMediaCheckAutomaticMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveIsMediaCheckAutomaticMethodInfo a signature Source # | |
driveIsMediaCheckAutomatic Source #
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool | Returns: |
Checks if drive
is capabable of automatically detecting media changes.
isMediaRemovable
data DriveIsMediaRemovableMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveIsMediaRemovableMethodInfo a signature Source # | |
driveIsMediaRemovable Source #
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool | Returns: |
Checks if the drive
supports removable media.
isRemovable
data DriveIsRemovableMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsDrive a) => MethodInfo * DriveIsRemovableMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a) | |
=> a |
|
-> m Bool | Returns: |
Checks if the Drive
and/or its media is considered removable by the user.
See driveIsMediaRemovable
.
Since: 2.50
pollForMedia
data DrivePollForMediaMethodInfo Source #
((~) * signature (Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDrive a, IsCancellable b) => MethodInfo * DrivePollForMediaMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously polls drive
to see if media has been inserted or removed.
When the operation is finished, callback
will be called.
You can then call drivePollForMediaFinish
to obtain the
result of the operation.
pollForMediaFinish
data DrivePollForMediaFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsDrive a, IsAsyncResult b) => MethodInfo * DrivePollForMediaFinishMethodInfo a signature Source # | |
drivePollForMediaFinish Source #
:: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with drivePollForMedia
on a drive.
start
data DriveStartMethodInfo Source #
((~) * signature ([DriveStartFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) => MethodInfo * DriveStartMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [DriveStartFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously starts a drive.
When the operation is finished, callback
will be called.
You can then call driveStartFinish
to obtain the
result of the operation.
Since: 2.22
startFinish
data DriveStartFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsDrive a, IsAsyncResult b) => MethodInfo * DriveStartFinishMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes starting a drive.
Since: 2.22
stop
data DriveStopMethodInfo Source #
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) => MethodInfo * DriveStopMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously stops a drive.
When the operation is finished, callback
will be called.
You can then call driveStopFinish
to obtain the
result of the operation.
Since: 2.22
stopFinish
data DriveStopFinishMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsDrive a, IsAsyncResult b) => MethodInfo * DriveStopFinishMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDrive a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes stopping a drive.
Since: 2.22
Signals
changed
type DriveChangedCallback = IO () Source #
afterDriveChanged :: (IsDrive a, MonadIO m) => a -> DriveChangedCallback -> m SignalHandlerId Source #
onDriveChanged :: (IsDrive a, MonadIO m) => a -> DriveChangedCallback -> m SignalHandlerId Source #
wrap_DriveChangedCallback :: DriveChangedCallback -> Ptr () -> Ptr () -> IO () Source #
disconnected
type DriveDisconnectedCallback = IO () Source #
afterDriveDisconnected :: (IsDrive a, MonadIO m) => a -> DriveDisconnectedCallback -> m SignalHandlerId Source #
mk_DriveDisconnectedCallback :: C_DriveDisconnectedCallback -> IO (FunPtr C_DriveDisconnectedCallback) Source #
onDriveDisconnected :: (IsDrive a, MonadIO m) => a -> DriveDisconnectedCallback -> m SignalHandlerId Source #
wrap_DriveDisconnectedCallback :: DriveDisconnectedCallback -> Ptr () -> Ptr () -> IO () Source #
ejectButton
type DriveEjectButtonCallback = IO () Source #
afterDriveEjectButton :: (IsDrive a, MonadIO m) => a -> DriveEjectButtonCallback -> m SignalHandlerId Source #
mk_DriveEjectButtonCallback :: C_DriveEjectButtonCallback -> IO (FunPtr C_DriveEjectButtonCallback) Source #
onDriveEjectButton :: (IsDrive a, MonadIO m) => a -> DriveEjectButtonCallback -> m SignalHandlerId Source #
wrap_DriveEjectButtonCallback :: DriveEjectButtonCallback -> Ptr () -> Ptr () -> IO () Source #
stopButton
type DriveStopButtonCallback = IO () Source #
afterDriveStopButton :: (IsDrive a, MonadIO m) => a -> DriveStopButtonCallback -> m SignalHandlerId Source #
mk_DriveStopButtonCallback :: C_DriveStopButtonCallback -> IO (FunPtr C_DriveStopButtonCallback) Source #
onDriveStopButton :: (IsDrive a, MonadIO m) => a -> DriveStopButtonCallback -> m SignalHandlerId Source #
wrap_DriveStopButtonCallback :: DriveStopButtonCallback -> Ptr () -> Ptr () -> IO () Source #