Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
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)
- 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 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 # | |
IsGValue UnixMountPoint Source # | Convert |
Defined in GI.Gio.Structs.UnixMountPoint toGValue :: UnixMountPoint -> IO GValue # fromGValue :: GValue -> IO UnixMountPoint # | |
ManagedPtrNewtype UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint | |
TypedObject UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint | |
GBoxed UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint | |
HasParentTypes UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint | |
type ParentTypes UnixMountPoint Source # | |
Defined in GI.Gio.Structs.UnixMountPoint |
Methods
Overloaded methods
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 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.