gi-gio-2.0.18: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Structs.UnixMountPoint

Contents

Description

Defines a Unix mount point (e.g. <filename>/dev</filename>). This corresponds roughly to a fstab entry.

Synopsis

Exported types

newtype UnixMountPoint Source #

Memory-managed wrapper type.

Methods

compare

unixMountPointCompare Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mount1: a GUnixMount.

-> UnixMountPoint

mount2: a GUnixMount.

-> m Int32

Returns: 1, 0 or -1 if mount1 is greater than, equal to, or less than mount2, respectively.

Compares two unix mount points.

copy

unixMountPointCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint.

-> m UnixMountPoint

Returns: a new UnixMountPoint

Makes a copy of mountPoint.

Since: 2.54

free

unixMountPointFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: unix mount point to free.

-> m () 

Frees a unix mount point.

getDevicePath

unixMountPointGetDevicePath Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint.

-> m [Char]

Returns: a string containing the device path.

Gets the device path for a unix mount point.

getFsType

unixMountPointGetFsType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint.

-> m Text

Returns: a string containing the file system type.

Gets the file system type for the mount point.

getMountPath

unixMountPointGetMountPath Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint.

-> m [Char]

Returns: a string containing the mount path.

Gets the mount path for a unix mount point.

getOptions

unixMountPointGetOptions Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint.

-> m Text

Returns: a string containing the options.

Gets the options for the mount point.

Since: 2.32

guessCanEject

unixMountPointGuessCanEject Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint

-> m Bool

Returns: True if mountPoint is deemed to be ejectable.

Guesses whether a Unix mount point can be ejected.

guessIcon

unixMountPointGuessIcon Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint

-> m Icon

Returns: a Icon

Guesses the icon of a Unix mount point.

guessName

unixMountPointGuessName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint

-> m Text

Returns: A newly allocated string that must be freed with free

Guesses the name of a Unix mount point. The result is a translated string.

guessSymbolicIcon

unixMountPointGuessSymbolicIcon Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint

-> m Icon

Returns: a Icon

Guesses the symbolic icon of a Unix mount point.

Since: 2.34

isLoopback

unixMountPointIsLoopback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint.

-> m Bool

Returns: True if the mount point is a loopback. False otherwise.

Checks if a unix mount point is a loopback device.

isReadonly

unixMountPointIsReadonly Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint.

-> m Bool

Returns: True if a mount point is read only.

Checks if a unix mount point is read only.

isUserMountable

unixMountPointIsUserMountable Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> UnixMountPoint

mountPoint: a UnixMountPoint.

-> m Bool

Returns: True if the mount point is user mountable.

Checks if a unix mount point is mountable by the user.