Name
MIME Type Detection -- detecting the mime type of a URI
Details
GNOME_VFS_MIME_TYPE_UNKNOWN
| #define GNOME_VFS_MIME_TYPE_UNKNOWN "application/octet-stream" | 
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); | 
Determined the mime type for 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); | 
This routine tries to determine the mime-type of the filename
only by looking at the filename from the GNOME database of mime-types.
gnome_vfs_get_mime_type ()
| char*       gnome_vfs_get_mime_type         (const char *text_uri); | 
Determine the mime type of text_uri. The mime type is determined
in the same way as by gnome_vfs_get_file_info(). This is meant as
a convenience function for times when you only want the mime type.
gnome_vfs_get_mime_type_from_uri ()
| const char* gnome_vfs_get_mime_type_from_uri
                                            (GnomeVFSURI *uri); | 
Tries to guess the mime type of the file uri by
checking the file name extension. Works on non-existent
files.
gnome_vfs_get_mime_type_from_file_data ()
| const char* gnome_vfs_get_mime_type_from_file_data
                                            (GnomeVFSURI *uri); | 
Tries to guess the mime type of the file uri by
checking the file data using the magic patterns. Does not handle text files properly
gnome_vfs_get_mime_type_for_data ()
| const char* gnome_vfs_get_mime_type_for_data
                                            (gconstpointer data,
                                             int data_size); | 
Tries to guess the mime type of the data in data
using the magic patterns.
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); | 
Tries to guess the mime type of the file represented by path.
If suffix_only is false, uses the mime-magic based lookup first.
Handles passing path of a non-existent file by falling back
on returning a type based on the extension.
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); |