Basic Types

Basic Types — Standard Thunar-VFS types, defined for ease-of-use and portability.

Stability Level

Stable, unless otherwise indicated

Types and Values

Includes

#include <thunar-vfs/thunar-vfs.h>

Description

Thunar-VFS defines a number of commonly used types to abstract the details of the underlying system.

Functions

Types and Values

enum ThunarVfsDeepCountFlags

Additional flags to pass to thunar_vfs_deep_count(), which control the exact behavior of the job.

Members

THUNAR_VFS_DEEP_COUNT_FLAGS_NONE

no special behavior.

 

THUNAR_VFS_DEEP_COUNT_FLAGS_FOLLOW_SYMLINKS

follow symlinks to folders. If this flag is set, the job will also count symlinked folders recursively.

 

enum ThunarVfsFileType

Describes the type of a file.

Members

THUNAR_VFS_FILE_TYPE_PORT

An event port (Solaris event framework).

 

THUNAR_VFS_FILE_TYPE_DOOR

A door (Solaris IPC mechanism).

 

THUNAR_VFS_FILE_TYPE_SOCKET

A unix domain socket.

 

THUNAR_VFS_FILE_TYPE_SYMLINK

A broken symlink, for which the target does not exist (if the target would exist, the ThunarVfsInfo object would have the type of the target).

 

THUNAR_VFS_FILE_TYPE_REGULAR

A regular file.

 

THUNAR_VFS_FILE_TYPE_BLOCKDEV

A block device node.

 

THUNAR_VFS_FILE_TYPE_DIRECTORY

A directory node.

 

THUNAR_VFS_FILE_TYPE_CHARDEV

A character device node.

 

THUNAR_VFS_FILE_TYPE_FIFO

A named FIFO.

 

THUNAR_VFS_FILE_TYPE_UNKNOWN

The exact type of the file could not be determined.

 

enum ThunarVfsFileMode

Special flags and permissions of a filesystem entity.

Members

THUNAR_VFS_FILE_MODE_SUID

SUID bit.

 

THUNAR_VFS_FILE_MODE_SGID

SGID bit.

 

THUNAR_VFS_FILE_MODE_STICKY

Sticky bit.

 

THUNAR_VFS_FILE_MODE_USR_ALL

Owner can do everything.

 

THUNAR_VFS_FILE_MODE_USR_READ

Owner can read the file.

 

THUNAR_VFS_FILE_MODE_USR_WRITE

Owner can write the file.

 

THUNAR_VFS_FILE_MODE_USR_EXEC

Owner can execute the file.

 

THUNAR_VFS_FILE_MODE_GRP_ALL

Owner group can do everything.

 

THUNAR_VFS_FILE_MODE_GRP_READ

Owner group can read the file.

 

THUNAR_VFS_FILE_MODE_GRP_WRITE

Owner group can write the file.

 

THUNAR_VFS_FILE_MODE_GRP_EXEC

Owner group can execute the file.

 

THUNAR_VFS_FILE_MODE_OTH_ALL

Others can do everything.

 

THUNAR_VFS_FILE_MODE_OTH_READ

Others can read the file.

 

THUNAR_VFS_FILE_MODE_OTH_WRITE

Others can write the file.

 

THUNAR_VFS_FILE_MODE_OTH_EXEC

Others can execute the file.

 

enum ThunarVfsFileFlags

Flags providing additional information about the file system entity.

Members

THUNAR_VFS_FILE_FLAGS_NONE

No additional information available.

 

THUNAR_VFS_FILE_FLAGS_SYMLINK

The file is a symlink. Whether or not the info fields refer to the symlink itself or the linked file, depends on whether the symlink is broken or not.

 

THUNAR_VFS_FILE_FLAGS_EXECUTABLE

The file can most probably be executed by thunar_vfs_info_execute().

 

THUNAR_VFS_FILE_FLAGS_HIDDEN

The file should not be displayed normally, but only if the user requests to display hidden files. Hidden files start with a dot character ('.') or end with a tilde character ('~').

 

THUNAR_VFS_FILE_FLAGS_READABLE

The file can most probably be read by the current user.

 

THUNAR_VFS_FILE_FLAGS_WRITABLE

The file can most probably be written by the current user.

 

ThunarVfsFileDevice

typedef dev_t ThunarVfsFileDevice;

Datatype to represent the device number of a file.


ThunarVfsFileSize

typedef gint64 ThunarVfsFileSize;

Datatype to represent file sizes (in bytes). The file size is always represented as a 64bit integer, even on system that do not support large files.


ThunarVfsFileTime

typedef time_t ThunarVfsFileTime;

Datatype to represent file times (in seconds).


ThunarVfsGroupId

typedef gid_t ThunarVfsGroupId;

Datatype to represent a group id.


ThunarVfsUserId

typedef uid_t ThunarVfsUserId;

Datatype to represent a user id.