#include "rox-clib.h"
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <sys/param.h>
#include <fnmatch.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <gtk/gtk.h>
#include <libxml/parser.h>
#include "rox.h"
#include "basedir.h"
#include "mime.h"
|
XML name space of the MIME definitions. |
|
Normal files of undefined type default to text/plain |
|
The first pattern in the list which matches is used |
|
Return how the MIME system deals with the content of files, see mime_set_by_content().
|
|
Return how the MIME system treats executable files, see mime_set_ignore_exec_bit().
|
|
Initialize the MIME type system.
|
|
Return the MIME type of the named object.
|
|
Return the type of a file based purely on the name. The file need not exist or be readable.
|
|
Set how the MIME system deals with the content of files. If content is
|
|
Set how the MIME system treats executable files. If ignore is
|
|
Return the comment of a MIME type (the long form of a name, e.g. " Text document")
|
|
Return the human readable name of the type, in the form media/sub-type
|
|
Return how the MIME system deals with the content of files, see mime_set_by_content(). Currently this flag has no effect as identifying files by content is not yet supported.
|
|
Return the icon for the specified MIME type, scaled appropriately. This function checks the override icons for media/subtype, then the ROX theme icon for the same type. If neither works it tries again for the generic media icon in the same places. If nothing works, In the future this will detect the icon theme in use, but until then only the ROX theme is checked.
|
|
Return how the MIME system treats executable files, see mime_set_ignore_exec_bit().
|
|
Parse a MIME type name and return the corresponding ROXMIMEType data.
|
|
Initialize the MIME type system. This must be called before the other functions. |
|
Return the MIME type of the named object. If the object does not exist, or is in an unsearchable directory, then the type returned is based purely on the name.
If the object does exist then the type of file is checked. If it is a non-file object (such as a directory) then the appropriate inode/subtype type is returned. If it is a file and is executable and the mime_get_ignore_exec_bit() value is
If mime_get_by_content() is not If the type can be identified by the name then that is returned. Finally if the execute bit is set application/executable is returned, otherwise UNKNOWN.
|
|
Return the type of a file based purely on the name. The file need not exist or be readable.
|
|
Set how the MIME system deals with the content of files. If content is Currently this flag has no effect as identifying files by content is not yet supported.
|
|
Set how the MIME system treats executable files. If ignore is
|
|
Return the comment of a MIME type (the long form of a name, e.g. " Text document")
|
|
Return the human readable name of the type, in the form media/sub-type
|
|
Default for executable file |
|
Default for binary file |
|
Block device file |
|
Character device file |
|
A directory |
|
Door file, similar to sockets, not available on all operating systems |
|
A directory used as a mount point |
|
A named pipe |
|
UNIX domain socket |
|
Unknown type, probably broken symbolic link |
|
Default for plain file |