Whole document tree
    

Whole document tree

mime-info

mime-info

Name

mime-info -- 

Description

Details

gnome_vfs_mime_freeze ()

void        gnome_vfs_mime_freeze           (void);

Freezes the mime data so that you can do multiple updates to the dat in one batch without needing to back the files to disk or readind them


gnome_vfs_mime_thaw ()

void        gnome_vfs_mime_thaw             (void);

UnFreezes the mime data so that you can do multiple updates to the dat in one batch without needing to back the files to disk or readind them


gnome_vfs_mime_info_reload ()

void        gnome_vfs_mime_info_reload      (void);


gnome_vfs_mime_type_is_known ()

gboolean    gnome_vfs_mime_type_is_known    (const char *mime_type);

This function returns TRUE if mime_type is in the MIME database at all.


gnome_vfs_mime_get_value ()

const char* gnome_vfs_mime_get_value        (const char *mime_type,
                                             const char *key);

This function retrieves the value associated with key in the given GnomeMimeContext. The string is private, you should not free the result.


gnome_vfs_mime_set_value ()

GnomeVFSResult gnome_vfs_mime_set_value     (const char *mime_type,
                                             const char *key,
                                             const char *value);

This function is going to set the value associated to the key and it will save it to the user' file if necessary. You should not free the key/values passed to this function. They are used internally.



gnome_vfs_mime_keys_list_free ()

void        gnome_vfs_mime_keys_list_free   (GList *mime_ype_list);

Frees the mime type list.


gnome_vfs_mime_get_extensions_list ()

GList*      gnome_vfs_mime_get_extensions_list
                                            (const char *mime_type);


gnome_vfs_mime_extensions_list_free ()

void        gnome_vfs_mime_extensions_list_free
                                            (GList *list);


gnome_vfs_mime_get_extensions_string ()

char*       gnome_vfs_mime_get_extensions_string
                                            (const char *mime_type);


gnome_vfs_mime_get_extensions_pretty_string ()

char*       gnome_vfs_mime_get_extensions_pretty_string
                                            (const char *mime_type);


gnome_vfs_get_registered_mime_types ()

GList*      gnome_vfs_get_registered_mime_types
                                            (void);


gnome_vfs_mime_registered_mime_type_list_free ()

void        gnome_vfs_mime_registered_mime_type_list_free
                                            (GList *list);

Call this function on the list returned by gnome_vfs_get_registered_mime_types to free the list and all of its elements.


gnome_vfs_mime_set_registered_type_key ()

GnomeVFSResult gnome_vfs_mime_set_registered_type_key
                                            (const char *mime_type,
                                             const char *key,
                                             const char *data);

This function sets the key data for the registered mime type's hash table.


gnome_vfs_mime_set_extensions_list ()

GnomeVFSResult gnome_vfs_mime_set_extensions_list
                                            (const char *mime_type,
                                             const char *extension_list);

Sets the extensions for a given mime type. Overrides the previously set extensions.


gnome_vfs_mime_registered_mime_type_delete ()

void        gnome_vfs_mime_registered_mime_type_delete
                                            (const char *mime_type);

Delete a mime type for the user which runs this command. You can undo this only by calling gnome_vfs_mime_reset


gnome_vfs_mime_reset ()

void        gnome_vfs_mime_reset            (void);

resets the user's mime database to the system defaults.