Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Defines a Unix mount point (e.g. <filename>/dev</filename>). This corresponds roughly to a fstab entry.
Synopsis
- newtype UnixMountPoint = UnixMountPoint (ManagedPtr UnixMountPoint)
- unixMountPointAt :: (HasCallStack, MonadIO m) => [Char] -> m (Maybe UnixMountPoint, Word64)
- unixMountPointCompare :: (HasCallStack, MonadIO m) => UnixMountPoint -> UnixMountPoint -> m Int32
- unixMountPointCopy :: (HasCallStack, MonadIO m) => UnixMountPoint -> m UnixMountPoint
- unixMountPointFree :: (HasCallStack, MonadIO m) => UnixMountPoint -> m ()
- unixMountPointGetDevicePath :: (HasCallStack, MonadIO m) => UnixMountPoint -> m [Char]
- unixMountPointGetFsType :: (HasCallStack, MonadIO m) => UnixMountPoint -> m Text
- unixMountPointGetMountPath :: (HasCallStack, MonadIO m) => UnixMountPoint -> m [Char]
- unixMountPointGetOptions :: (HasCallStack, MonadIO m) => UnixMountPoint -> m (Maybe Text)
- unixMountPointGuessCanEject :: (HasCallStack, MonadIO m) => UnixMountPoint -> m Bool
- unixMountPointGuessIcon :: (HasCallStack, MonadIO m) => UnixMountPoint -> m Icon
- unixMountPointGuessName :: (HasCallStack, MonadIO m) => UnixMountPoint -> m Text
- unixMountPointGuessSymbolicIcon :: (HasCallStack, MonadIO m) => UnixMountPoint -> m Icon
- unixMountPointIsLoopback :: (HasCallStack, MonadIO m) => UnixMountPoint -> m Bool
- unixMountPointIsReadonly :: (HasCallStack, MonadIO m) => UnixMountPoint -> m Bool
- unixMountPointIsUserMountable :: (HasCallStack, MonadIO m) => UnixMountPoint -> m Bool
Exported types
newtype UnixMountPoint Source #
Memory-managed wrapper type.
Instances
Eq UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint (==) :: UnixMountPoint -> UnixMountPoint -> Bool # (/=) :: UnixMountPoint -> UnixMountPoint -> Bool # | |
GBoxed UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint | |
ManagedPtrNewtype UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint | |
TypedObject UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint | |
HasParentTypes UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint | |
IsGValue (Maybe UnixMountPoint) Source # | Convert |
Defined in GI.Gio.Structs.UnixMountPoint gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe UnixMountPoint -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe UnixMountPoint) # | |
type ParentTypes UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint |
Methods
Click to display all available methods, including inherited ones
Methods
compare, copy, free, guessCanEject, guessIcon, guessName, guessSymbolicIcon, isLoopback, isReadonly, isUserMountable.
Getters
getDevicePath, getFsType, getMountPath, getOptions.
Setters
None.
at
:: (HasCallStack, MonadIO m) | |
=> [Char] |
|
-> m (Maybe UnixMountPoint, Word64) | Returns: a |
Gets a UnixMountPoint
for a given mount path. If timeRead
is set, it
will be filled with a unix timestamp for checking if the mount points have
changed since with unixMountPointsChangedSince
.
If more mount points have the same mount path, the last matching mount point is returned.
Since: 2.66
compare
unixMountPointCompare Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> UnixMountPoint |
|
-> m Int32 | Returns: 1, 0 or -1 if |
Compares two unix mount points.
copy
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m UnixMountPoint | Returns: a new |
Makes a copy of mountPoint
.
Since: 2.54
free
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m () |
Frees a unix mount point.
getDevicePath
unixMountPointGetDevicePath Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m [Char] | Returns: a string containing the device path. |
Gets the device path for a unix mount point.
getFsType
unixMountPointGetFsType Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m Text | Returns: a string containing the file system type. |
Gets the file system type for the mount point.
getMountPath
unixMountPointGetMountPath Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m [Char] | Returns: a string containing the mount path. |
Gets the mount path for a unix mount point.
getOptions
unixMountPointGetOptions Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m (Maybe Text) | Returns: a string containing the options. |
Gets the options for the mount point.
Since: 2.32
guessCanEject
unixMountPointGuessCanEject Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m Bool | Returns: |
Guesses whether a Unix mount point can be ejected.
guessIcon
unixMountPointGuessIcon Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m Icon | Returns: a |
Guesses the icon of a Unix mount point.
guessName
unixMountPointGuessName Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m Text | Returns: A newly allocated string that must
be freed with |
Guesses the name of a Unix mount point. The result is a translated string.
guessSymbolicIcon
unixMountPointGuessSymbolicIcon Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m Icon | Returns: a |
Guesses the symbolic icon of a Unix mount point.
Since: 2.34
isLoopback
unixMountPointIsLoopback Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m Bool | Returns: |
Checks if a unix mount point is a loopback device.
isReadonly
unixMountPointIsReadonly Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m Bool | Returns: |
Checks if a unix mount point is read only.
isUserMountable
unixMountPointIsUserMountable Source #
:: (HasCallStack, MonadIO m) | |
=> UnixMountPoint |
|
-> m Bool | Returns: |
Checks if a unix mount point is mountable by the user.