UnixMountEntry

Routines for managing mounted UNIX mount points and paths.

Note that <gio/gunixmounts.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file when using it.

Constructors

this
this(GUnixMountEntry* gUnixMountEntry)

Sets our main struct and passes it to the parent class

Members

Functions

compare
int compare(UnixMountEntry mount2)

Compares two unix mounts.

free
void free()

Frees a unix mount.

getDevicePath
string getDevicePath()

Gets the device path for a unix mount.

getFsType
string getFsType()

Gets the filesystem type for the unix mount.

getMountPath
string getMountPath()

Gets the mount path for a unix mount.

getStruct
void* getStruct()

the main Gtk struct as a void*

getUnixMountEntryStruct
GUnixMountEntry* getUnixMountEntryStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
guessCanEject
int guessCanEject()

Guesses whether a Unix mount can be ejected.

guessIcon
IconIF guessIcon()

Guesses the icon of a Unix mount.

guessName
string guessName()

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

guessShouldDisplay
int guessShouldDisplay()

Guesses whether a Unix mount should be displayed in the UI.

guessSymbolicIcon
IconIF guessSymbolicIcon()

Guesses the symbolic icon of a Unix mount. Since 2.34

isReadonly
int isReadonly()

Checks if a unix mount is mounted read only.

isSystemInternal
int isSystemInternal()

Checks if a unix mount is a system path.

Static functions

at
UnixMountEntry at(string mountPath, ulong timeRead)

Gets a GUnixMountEntry for a given mount path. If time_read is set, it will be filled with a unix timestamp for checking if the mounts have changed since with g_unix_mounts_changed_since().

isMountPathSystemInternal
int isMountPathSystemInternal(string mountPath)

Determines if mount_path is considered an implementation of the OS. This is primarily used for hiding mountable and mounted volumes that only are used in the OS and has little to no relevance to the casual user.

mountsChangedSince
int mountsChangedSince(ulong time)

Checks if the unix mounts have changed since a given unix time.

mountsGet
ListG mountsGet(ulong timeRead)

Gets a GList of GUnixMountEntry containing the unix mounts. If time_read is set, it will be filled with the mount timestamp, allowing for checking if the mounts have changed with g_unix_mounts_changed_since().

pointsChangedSince
int pointsChangedSince(ulong time)

Checks if the unix mount points have changed since a given unix time.

pointsGet
ListG pointsGet(ulong* timeRead)

Gets a GList of GUnixMountPoint containing the unix mount points. If time_read is set, it will be filled with the mount timestamp, allowing for checking if the mounts have changed with g_unix_mount_points_changed_since().

Variables

gUnixMountEntry
GUnixMountEntry* gUnixMountEntry;

the main Gtk struct

Meta