MIME typing
MIME typing —
Description
Details
gnome_vfs_mime_shutdown ()
void gnome_vfs_mime_shutdown (void);
gnome_vfs_mime_type_from_name ()
const char* gnome_vfs_mime_type_from_name (const char *filename);
filename : | A filename (the file does not necessarily exist).
|
Returns : | the mime-type for this filename.
|
gnome_vfs_mime_type_from_name_or_default ()
const char* gnome_vfs_mime_type_from_name_or_default
(const char *filename,
const char *defaultv);
filename : | A filename (the file does not necesarily exist).
|
defaultv : | A default value to be returned if no match is found
|
Returns : | the mime-type of the filename. If no value could be
determined, it will return defaultv.
|
gnome_vfs_get_mime_type_common ()
const char* gnome_vfs_get_mime_type_common (GnomeVFSURI *uri);
uri : | a real file or a non-existent uri.
|
Returns : | the mime-type for this uri.
|
gnome_vfs_get_mime_type_from_uri ()
const char* gnome_vfs_get_mime_type_from_uri
(GnomeVFSURI *uri);
uri : | A file uri.
|
Returns : | the mime-type for this filename.
|
gnome_vfs_get_mime_type_from_file_data ()
const char* gnome_vfs_get_mime_type_from_file_data
(GnomeVFSURI *uri);
uri : | A file uri.
|
Returns : | the mime-type for this filename.
|
gnome_vfs_get_file_mime_type ()
const char* gnome_vfs_get_file_mime_type (const char *path,
const struct stat *optional_stat_info,
gboolean suffix_only);
path : | a path of a file.
|
optional_stat_info : | optional stat buffer.
|
suffix_only : | whether or not to do a magic-based lookup.
|
Returns : | the mime-type for this path
|
gnome_vfs_mime_type_is_supertype ()
gboolean gnome_vfs_mime_type_is_supertype
(const char *mime_type);
gnome_vfs_get_supertype_from_mime_type ()
char* gnome_vfs_get_supertype_from_mime_type
(const char *mime_type);