Magic MIME Detection

Name

Magic MIME Detection -- functions for parsing the magic mime database

Synopsis



enum        GnomeMagicType;
GnomeMagicEntry* gnome_vfs_mime_magic_parse (const gchar *filename,
                                             gint *nents);
GnomeMagicEntry* gnome_vfs_mime_test_get_magic_table
                                            (const char *table_path);
void        gnome_vfs_mime_dump_magic_table (void);

Description

Details

enum GnomeMagicType

typedef enum {
	T_END, /* end of array */
	T_BYTE,
	T_SHORT,
	T_LONG,
	T_STR,
	T_DATE, 
	T_BESHORT,
	T_BELONG,
	T_BEDATE,
	T_LESHORT,
	T_LELONG,
	T_LEDATE
} GnomeMagicType;


gnome_vfs_mime_magic_parse ()

GnomeMagicEntry* gnome_vfs_mime_magic_parse (const gchar *filename,
                                             gint *nents);

filename : 
nents : 
Returns : 


gnome_vfs_mime_test_get_magic_table ()

GnomeMagicEntry* gnome_vfs_mime_test_get_magic_table
                                            (const char *table_path);

table_path : 
Returns : 


gnome_vfs_mime_dump_magic_table ()

void        gnome_vfs_mime_dump_magic_table (void);