group
group__libshare__fsmime
Provides the definitions for common data formats.

Inode Mime Type

typedef
typedef struct shmime_def_t shmime_def_t
function
shmime_t* shmime
(char *type)
function
shmime_t* shmime_file
(shfs_ino_t *file)
function
char* shmime_print
(shmime_t *mime)
function
char** shmime_default_dirs
(void)
define
SHMIMEOP_NONE
0
A non-specific mime definition directive.
define
SHMIMEOP_SEXE
1
A SEXE executable path to process the mime type.
define
SHMIME_BINARY
"application/octet-stream"
define
SHMIME_TEXT_PLAIN
"text/plain"
define
SHMIME_APP_GZIP
"application/x-gzip"
define
SHMIME_APP_LINUX
"application/octet-stream/elf"
define
SHMIME_APP_LINUX_32
"application/octet-stream/elf-32"
define
SHMIME_APP_TAR
"application/x-tar"
define
SHMIME_APP_PEM
"application/x-pem-file"
define
SHMIME_APP_SQLITE
"application/x-sqlite3"
define
SHMIME_APP_SEXE
"application/x-sexe"
define
MAX_DEFAULT_SHARE_MIME_TYPES
10
define
MAX_MIME_HEADER_SIZE
512
Maximum length of a file's header to scan in order to detect mime type.