mate-vfs-mime-database-deprecated

## mate-vfs-mime-database-deprecated mate-vfs-mime-database-deprecated |

## Synopsis

    enum                MateVFSMimeActionType;
    enum                MateVFSMimeApplicationArgumentType;
    struct              MateVFSMimeAction;
    MateVFSMimeActionType  mate_vfs_mime_get_default_action_type
                                                            (const char *mime_type);
    MateVFSMimeAction *      mate_vfs_mime_get_default_action
                                                            (const char *mime_type);
    GList *                   mate_vfs_mime_get_short_list_applications
                                                            (const char *mime_type);
    GList *             mate_vfs_mime_get_short_list_components
                                                            (const char *mime_type);
    MateVFSResult      mate_vfs_mime_set_default_action_type
                                                            (const char *mime_type,
                                                             MateVFSMimeActionType action_type);
    MateVFSResult      mate_vfs_mime_set_icon             (const char *mime_type,
                                                             const char *filename);
    MateVFSResult      mate_vfs_mime_set_description      (const char *mime_type,
                                                             const char *description);
    MateVFSResult      mate_vfs_mime_set_can_be_executable
                                                            (const char *mime_type,
                                                             gboolean new_value);
    MateVFSResult      mate_vfs_mime_set_short_list_applications
                                                            (const char *mime_type,
                                                             GList *application_ids);
    MateVFSResult      mate_vfs_mime_set_short_list_components
                                                            (const char *mime_type,
                                                             GList *component_iids);
    MateVFSResult      mate_vfs_mime_add_application_to_short_list
                                                            (const char *mime_type,
                                                             const char *application_id);
    MateVFSResult      mate_vfs_mime_remove_application_from_short_list
                                                            (const char *mime_type,
                                                             const char *application_id);
    MateVFSResult      mate_vfs_mime_add_component_to_short_list
                                                            (const char *mime_type,
                                                             const char *iid);
    MateVFSResult      mate_vfs_mime_remove_component_from_short_list
                                                            (const char *mime_type,
                                                             const char *iid);
    MateVFSResult      mate_vfs_mime_set_default_application
                                                            (const char *mime_type,
                                                             const char *application_id);
    MateVFSResult      mate_vfs_mime_set_default_component
                                                            (const char *mime_type,
                                                             const char *component_iid);
    MateVFSResult      mate_vfs_mime_add_extension        (const char *mime_type,
                                                             const char *extension);
    MateVFSResult      mate_vfs_mime_remove_extension     (const char *mime_type,
                                                             const char *extension);
    MateVFSResult      mate_vfs_mime_extend_all_applications
                                                            (const char *mime_type,
                                                             GList *application_ids);
    MateVFSResult      mate_vfs_mime_remove_from_all_applications
                                                            (const char *mime_type,
                                                             GList *application_ids);
    MateVFSMimeApplication * mate_vfs_mime_application_new_from_id
                                                            (const char *id);
    MateVFSResult      mate_vfs_mime_action_launch        (MateVFSMimeAction *action,
                                                             GList *uris);
    MateVFSResult      mate_vfs_mime_action_launch_with_env
                                                            (MateVFSMimeAction *action,
                                                             GList *uris,
                                                             char **envp);
    void                mate_vfs_mime_action_free          (MateVFSMimeAction *action);
    gboolean            mate_vfs_mime_id_in_application_list
                                                            (const char *id,
                                                             GList *applications);
    gboolean            mate_vfs_mime_id_in_component_list (const char *iid,
                                                             GList *components);
    GList *                   mate_vfs_mime_remove_application_from_list
                                                            (GList *applications,
                                                             const char *application_id,
                                                             gboolean *did_remove);
    GList *             mate_vfs_mime_remove_component_from_list
                                                            (GList *components,
                                                             const char *iid,
                                                             gboolean *did_remove);
    GList *             mate_vfs_mime_id_list_from_component_list
                                                            (GList *components);
    GList *                   mate_vfs_mime_id_list_from_application_list
                                                            (GList *applications);
    void                mate_vfs_mime_freeze               (void);
    void                mate_vfs_mime_thaw                 (void);
    void                mate_vfs_mime_info_reload          (void);
    gboolean            mate_vfs_mime_type_is_known        (const char *mime_type);
    const char *        mate_vfs_mime_get_value            (const char *mime_type,
                                                             const char *key);
    MateVFSResult      mate_vfs_mime_set_value            (const char *mime_type,
                                                             const char *key,
                                                             const char *value);
    GList *             mate_vfs_mime_get_key_list         (const char *mime_type);
    void                mate_vfs_mime_keys_list_free       (GList *mime_type_list);
    GList *             mate_vfs_mime_get_extensions_list  (const char *mime_type);
    void                mate_vfs_mime_extensions_list_free (GList *list);
    char *              mate_vfs_mime_get_extensions_string
                                                            (const char *mime_type);
    char *              mate_vfs_mime_get_extensions_pretty_string
                                                            (const char *mime_type);
    GList *             mate_vfs_get_registered_mime_types (void);
    void                mate_vfs_mime_registered_mime_type_list_free
                                                            (GList *list);
    MateVFSResult      mate_vfs_mime_set_registered_type_key
                                                            (const char *mime_type,
                                                             const char *key,
                                                             const char *data);
    MateVFSResult      mate_vfs_mime_set_extensions_list  (const char *mime_type,
                                                             const char *extensions_list);
    void                mate_vfs_mime_registered_mime_type_delete
                                                            (const char *mime_type);
    void                mate_vfs_mime_reset                (void);

## Description

## Details

### enum MateVFSMimeActionType

    typedef enum {
    	MATE_VFS_MIME_ACTION_TYPE_NONE,
    	MATE_VFS_MIME_ACTION_TYPE_APPLICATION,
    	MATE_VFS_MIME_ACTION_TYPE_COMPONENT
    } MateVFSMimeActionType;

### Warning

`MateVFSMimeActionType` is deprecated and should not be used in newly-written code.

This is used to specify the `type` of a MateVFSMimeAction.

`MATE_VFS_MIME_ACTION_TYPE_NONE` | neither an application nor a component.
`MATE_VFS_MIME_ACTION_TYPE_APPLICATION` | an application.
`MATE_VFS_MIME_ACTION_TYPE_COMPONENT` | a component.

### enum MateVFSMimeApplicationArgumentType

    typedef enum {
    	MATE_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS,
    	MATE_VFS_MIME_APPLICATION_ARGUMENT_TYPE_PATHS,
    	MATE_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS_FOR_NON_FILES
    } MateVFSMimeApplicationArgumentType;

### struct MateVFSMimeAction

    struct MateVFSMimeAction {
    	MateVFSMimeActionType action_type;
    	union {
    		void *component;
    		void *dummy_component;
    		MateVFSMimeApplication *application;
    };

### Warning

`MateVFSMimeAction` is deprecated and should not be used in newly-written code.

This data structure describes an action that can be done on a file.

MateVFSMimeActionType `action_type`; | The MateVFSMimeActionType describing the type of this action.

### mate_vfs_mime_get_default_action_type ()

    MateVFSMimeActionType  mate_vfs_mime_get_default_action_type
                                                            (const char *mime_type);

### Warning

`mate_vfs_mime_get_default_action_type` is deprecated and should not be used in newly-written code. This function does not work with the new mime system. It always returns none

Query the MIME database for the type of action to be performed on `mime_type`.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
Returns : | The type of action to be performed on a file of MIME type `mime_type` by default.

### mate_vfs_mime_get_default_action ()

    MateVFSMimeAction *      mate_vfs_mime_get_default_action
                                                            (const char *mime_type);

### Warning

`mate_vfs_mime_get_default_action` is deprecated and should not be used in newly-written code. Use `mate_vfs_mime_get_default_application()` instead.

Query the MIME database for default action associated with `mime_type`.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
Returns : | a MateVFSMimeAction representing the default action to perform upon file of type `mime_type`.

### mate_vfs_mime_get_short_list_applications ()

    GList *                   mate_vfs_mime_get_short_list_applications
                                                            (const char *mime_type);

### Warning

`mate_vfs_mime_get_short_list_applications` is deprecated and should not be used in newly-written code. Use `mate_vfs_mime_get_all_applications()` instead.

Return an alphabetically sorted list of MateVFSMimeApplication data structures for the `mime_type`. mate-vfs no longer supports the concept of a "short list" of applications that the user might be interested in.

`mime_type` : | a const char * containing a mime type, e.g. "image/png".
Returns : | a GList * where the elements are MateVFSMimeApplication * representing various applications to display in the short list for `mime_type`.

### mate_vfs_mime_get_short_list_components ()

    GList *             mate_vfs_mime_get_short_list_components
                                                            (const char *mime_type);

### Warning

`mate_vfs_mime_get_short_list_components` is deprecated and should not be used in newly-written code.

`mime_type` : |
Returns : |

### mate_vfs_mime_set_default_action_type ()

    MateVFSResult      mate_vfs_mime_set_default_action_type
                                                            (const char *mime_type,
                                                             MateVFSMimeActionType action_type);

### Warning

`mate_vfs_mime_set_default_action_type` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Sets the default action type to be performed on files of `mime_type`.

`mime_type` : | a const char * containing a mime type, e.g. "image/png".
`action_type` : | a MateVFSMimeActionType containing the action to perform by default.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_set_icon ()

    MateVFSResult      mate_vfs_mime_set_icon             (const char *mime_type,
                                                             const char *filename);

### Warning

`mate_vfs_mime_set_icon` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported in mate-vfs.

Set the icon entry for `mime_type` in the MIME database. Note that icon entries need not necessarily contain the full path, and do not necessarily need to specify an extension. So "i-regular", "my-special-icon.png", and "some-icon" are all valid icon filenames.

`mime_type` : | a const char * containing a MIME type.
`filename` : | a const char * containing an image filename.
Returns : | a MateVFSResult indicating the success of the operation or any errors that may have occurred.

### mate_vfs_mime_set_description ()

    MateVFSResult      mate_vfs_mime_set_description      (const char *mime_type,
                                                             const char *description);

### Warning

`mate_vfs_mime_set_description` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Set the `description` of this MIME type in the MIME database. The `description` should be something like "Gnumeric spreadsheet".

`mime_type` : | a const char * containing a mime type.
`description` : | a description of this MIME type.
Returns : | MateVFSResult indicating the success of the operation or any errors that may have occurred.

### mate_vfs_mime_set_can_be_executable ()

    MateVFSResult      mate_vfs_mime_set_can_be_executable
                                                            (const char *mime_type,
                                                             gboolean new_value);

### Warning

`mate_vfs_mime_set_can_be_executable` is deprecated and should not be used in newly-written code.

Set whether files of `mime_type` might conceivably be executable.

`mime_type` : | a const char * containing a mime type.
`new_value` : | a boolean value indicating whether `mime_type` could be executable.
Returns : | a MateVFSResult indicating the success of the operation or any errors that may have occurred.

### mate_vfs_mime_set_short_list_applications ()

    MateVFSResult      mate_vfs_mime_set_short_list_applications
                                                            (const char *mime_type,
                                                             GList *application_ids);

### Warning

`mate_vfs_mime_set_short_list_applications` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Set the short list of applications for the specified MIME type. The short list contains applications recommended for possible selection by the user.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`application_ids` : | GList of const char * application ids.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_set_short_list_components ()

    MateVFSResult      mate_vfs_mime_set_short_list_components
                                                            (const char *mime_type,
                                                             GList *component_iids);

### Warning

`mate_vfs_mime_set_short_list_components` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Set the short list of components for the `mime_type`. The short list contains companents recommended for possible selection by the user.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`component_iids` : | GList of const char * OAFIIDs.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_add_application_to_short_list ()

    MateVFSResult      mate_vfs_mime_add_application_to_short_list
                                                            (const char *mime_type,
                                                             const char *application_id);

### Warning

`mate_vfs_mime_add_application_to_short_list` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Add an application to the short list for `mime_type`. The short list contains applications recommended for display as choices to the user for a particular MIME type.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`application_id` : | const char * containing the application's id in the MIME database.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_remove_application_from_short_list ()

    MateVFSResult      mate_vfs_mime_remove_application_from_short_list
                                                            (const char *mime_type,
                                                             const char *application_id);

### Warning

`mate_vfs_mime_remove_application_from_short_list` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Remove an application specified by `application_id` from the short list for `mime_type`. A short list contains applications recommended for display as choices to the user for a particular MIME type.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`application_id` : | const char * containing the application's id in the MIME database.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_add_component_to_short_list ()

    MateVFSResult      mate_vfs_mime_add_component_to_short_list
                                                            (const char *mime_type,
                                                             const char *iid);

### Warning

`mate_vfs_mime_add_component_to_short_list` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Add a component to the short list for `mime_type`. A short list contains components recommended for display as choices to the user for a particular MIME type.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`iid` : | const char * containing the component's OAFIID.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_remove_component_from_short_list ()

    MateVFSResult      mate_vfs_mime_remove_component_from_short_list
                                                            (const char *mime_type,
                                                             const char *iid);

### Warning

`mate_vfs_mime_remove_component_from_short_list` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Remove a component from the short list for `mime_type`. The short list contains components recommended for display as choices to the user for a particular MIME type.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`iid` : | const char * containing the component's OAFIID.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_set_default_application ()

    MateVFSResult      mate_vfs_mime_set_default_application
                                                            (const char *mime_type,
                                                             const char *application_id);

### Warning

`mate_vfs_mime_set_default_application` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Sets the default application to be run on files of `mime_type`.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`application_id` : | a key representing an application in the MIME database (MateVFSMimeApplication->id, for example).
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_set_default_component ()

    MateVFSResult      mate_vfs_mime_set_default_component
                                                            (const char *mime_type,
                                                             const char *component_iid);

### Warning

`mate_vfs_mime_set_default_component` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Sets the default component to be activated for files of `mime_type`.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`component_iid` : | OAFIID of a component.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_add_extension ()

    MateVFSResult      mate_vfs_mime_add_extension        (const char *mime_type,
                                                             const char *extension);

### Warning

`mate_vfs_mime_add_extension` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Add a file extension to the specificed MIME type in the MIME database.

`mime_type` : | mime type to add the mapping to.
`extension` : | extension to add (e.g. "txt").
Returns : | a MateVFSResult indicating the success of the operation or any errors that may have occurred.

### mate_vfs_mime_remove_extension ()

    MateVFSResult      mate_vfs_mime_remove_extension     (const char *mime_type,
                                                             const char *extension);

### Warning

`mate_vfs_mime_remove_extension` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Removes a file extension from the `mime_type` in the MIME database.

`mime_type` : | mime type to remove the extension from.
`extension` : | extension to remove.
Returns : | a MateVFSResult indicating the success of the operation or any errors that may have occurred.

### mate_vfs_mime_extend_all_applications ()

    MateVFSResult      mate_vfs_mime_extend_all_applications
                                                            (const char *mime_type,
                                                             GList *application_ids);

### Warning

`mate_vfs_mime_extend_all_applications` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Register `mime_type` as being handled by all applications list in `application_ids`.

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`application_ids` : | a GList of const char * containing application ids.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_remove_from_all_applications ()

    MateVFSResult      mate_vfs_mime_remove_from_all_applications
                                                            (const char *mime_type,
                                                             GList *application_ids);

### Warning

`mate_vfs_mime_remove_from_all_applications` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Remove `mime_type` as a handled type from every application in `application_ids`

`mime_type` : | a const char * containing a mime type, e.g. "application/x-php".
`application_ids` : | a GList of const char * containing application ids.
Returns : | a MateVFSResult indicating the success of the operation or reporting any errors encountered.

### mate_vfs_mime_application_new_from_id ()

    MateVFSMimeApplication * mate_vfs_mime_application_new_from_id
                                                            (const char *id);

### Warning

`mate_vfs_mime_application_new_from_id` is deprecated and should not be used in newly-written code. Use `mate_vfs_mime_application_new_from_desktop_id()` instead.

Fetches the MateVFSMimeApplication associated with the specified application `id` from the MIME database.

`id` : | a const char * containing an application id.
Returns : | a MateVFSMimeApplication * corresponding to `id`.

### mate_vfs_mime_action_launch ()

    MateVFSResult      mate_vfs_mime_action_launch        (MateVFSMimeAction *action,
                                                             GList *uris);

### Warning

`mate_vfs_mime_action_launch` is deprecated and should not be used in newly-written code. MIME actions are deprecated, use `mate_vfs_mime_application_launch()` instead.

Launches the given mime `action` with the given parameters. If the `action` is an application the command line parameters will be expanded as required by the application. The application will also be launched in a terminal if that is required. If the application only supports one argument per instance then multiple instances of the application will be launched.

If the default action is a component it will be launched with the component viewer application defined using the mateconf value: /desktop/mate/application/component_viewer/exec. The parameters `s` and `c` in the command line will be replaced with the list of parameters and the default component IID respectively.

`action` : | the MateVFSMimeAction to launch.
`uris` : | parameters for the MateVFSMimeAction.
Returns : | `MATE_VFS_OK` if the `action` was launched, `MATE_VFS_ERROR_BAD_PARAMETERS` for an invalid `action`. `MATE_VFS_ERROR_NOT_SUPPORTED` if the uri protocol is not supported by the `action`. `MATE_VFS_ERROR_PARSE` if the `action` command can not be parsed. `MATE_VFS_ERROR_LAUNCH` if the `action` command can not be launched. `MATE_VFS_ERROR_INTERNAL` for other internal and MateConf errors.

Since 2.4

### mate_vfs_mime_action_launch_with_env ()

    MateVFSResult      mate_vfs_mime_action_launch_with_env
                                                            (MateVFSMimeAction *action,
                                                             GList *uris,
                                                             char **envp);

### Warning

`mate_vfs_mime_action_launch_with_env` is deprecated and should not be used in newly-written code. MIME actions are deprecated, use `mate_vfs_mime_application_launch_with_env()` instead.

Same as `mate_vfs_mime_action_launch()` except that the application or component viewer will be launched with the given environment.

`action` : | the MateVFSMimeAction to launch.
`uris` : | parameters for the MateVFSMimeAction.
`envp` : | the environment to use for the action.
Returns : | same as `mate_vfs_mime_action_launch()`.

Since 2.4

### mate_vfs_mime_action_free ()

    void                mate_vfs_mime_action_free          (MateVFSMimeAction *action);

### Warning

`mate_vfs_mime_action_free` is deprecated and should not be used in newly-written code. MateVFSMimeAction structures should not be used in new code.

Frees a MateVFSMimeAction *.

`action` : | a MateVFSMimeAction to be freed.

### mate_vfs_mime_id_in_application_list ()

    gboolean            mate_vfs_mime_id_in_application_list
                                                            (const char *id,
                                                             GList *applications);

### Warning

`mate_vfs_mime_id_in_application_list` is deprecated and should not be used in newly-written code.

Check whether an application id is in a list of MateVFSMimeApplications.

`id` : | an application id.
`applications` : | a GList * whose nodes are MateVFSMimeApplications, such as the result of `mate_vfs_mime_get_short_list_applications()`.
Returns : | `TRUE` if an application whose id matches `id` is in `applications`.

### mate_vfs_mime_id_in_component_list ()

    gboolean            mate_vfs_mime_id_in_component_list (const char *iid,
                                                             GList *components);

### Warning

`mate_vfs_mime_id_in_component_list` is deprecated and should not be used in newly-written code.

`iid` : |
`components` : |
Returns : |

### mate_vfs_mime_remove_application_from_list ()

    GList *                   mate_vfs_mime_remove_application_from_list
                                                            (GList *applications,
                                                             const char *application_id,
                                                             gboolean *did_remove);

### Warning

`mate_vfs_mime_remove_application_from_list` is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by mate-vfs.

Remove an application specified by id from a list of MateVFSMimeApplications.

`applications` : | a GList * whose nodes are MateVFSMimeApplications, such as the result of `mate_vfs_mime_get_short_list_applications()`.
`application_id` : | id of an application to remove from `applications`.
`did_remove` : | If non-NULL, this is filled in with `TRUE` if the application was found in the list, `FALSE` otherwise.
Returns : | The modified list. If the application is not found, the list will be unchanged.

### mate_vfs_mime_remove_component_from_list ()

    GList *             mate_vfs_mime_remove_component_from_list
                                                            (GList *components,
                                                             const char *iid,
                                                             gboolean *did_remove);

### Warning

`mate_vfs_mime_remove_component_from_list` is deprecated and should not be used in newly-written code.

`components` : |
`iid` : |
`did_remove` : |
Returns : |

### mate_vfs_mime_id_list_from_component_list ()

    GList *             mate_vfs_mime_id_list_from_component_list
                                                            (GList *components);

### Warning

`mate_vfs_mime_id_list_from_component_list` is deprecated and should not be used in newly-written code.

`components` : |
Returns : |

### mate_vfs_mime_id_list_from_application_list ()

    GList *                   mate_vfs_mime_id_list_from_application_list
                                                            (GList *applications);

### Warning

`mate_vfs_mime_id_list_from_application_list` is deprecated and should not be used in newly-written code.

Create a list of application ids from a list of MateVFSMimeApplications.

`applications` : | a GList * whose nodes are MateVFSMimeApplications, such as the result of `mate_vfs_mime_get_short_list_applications()`.
Returns : | a new list where each MateVFSMimeApplication in the original list is replaced by a char * with the application's id. The original list is not modified.

### mate_vfs_mime_freeze ()

    void                mate_vfs_mime_freeze               (void);

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

### mate_vfs_mime_thaw ()

    void                mate_vfs_mime_thaw                 (void);

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

### mate_vfs_mime_info_reload ()

    void                mate_vfs_mime_info_reload          (void);

Reload the MIME database from disk and notify any listeners holding active MateVFSMIMEMonitor objects.

### mate_vfs_mime_type_is_known ()

    gboolean            mate_vfs_mime_type_is_known        (const char *mime_type);

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

`mime_type` : | a mime type.
Returns : | `TRUE` if anything is known about `mime_type`, otherwise `FALSE`.

### mate_vfs_mime_get_value ()

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

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

`mime_type` : | a mime type.
`key` : | a key to lookup for the given `mime_type`.
Returns : | `MATE_VFS_OK` if the operation succeeded, otherwise an error code.

### mate_vfs_mime_set_value ()

    MateVFSResult      mate_vfs_mime_set_value            (const char *mime_type,
                                                             const char *key,
                                                             const char *value);

### Warning

`mate_vfs_mime_set_value` is deprecated and should not be used in newly-written code.

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

`mime_type` : | a mime type.
`key` : | a key to store the value in.
`value` : | the value to store in the `key`.
Returns : | `MATE_VFS_OK` if the operation succeeded, otherwise an error code.

### mate_vfs_mime_get_key_list ()

    GList *             mate_vfs_mime_get_key_list         (const char *mime_type);

### Warning

`mate_vfs_mime_get_key_list` is deprecated and should not be used in newly-written code.

`mime_type` : |
Returns : |

### mate_vfs_mime_keys_list_free ()

    void                mate_vfs_mime_keys_list_free       (GList *mime_type_list);

### Warning

`mate_vfs_mime_keys_list_free` is deprecated and should not be used in newly-written code.

`mime_type_list` : |

### mate_vfs_mime_get_extensions_list ()

    GList *             mate_vfs_mime_get_extensions_list  (const char *mime_type);

Get the file extensions associated with mime type `mime_type`.

`mime_type` : | mime type to get the extensions of.
Returns : | a GList of char *s.

### mate_vfs_mime_extensions_list_free ()

    void                mate_vfs_mime_extensions_list_free (GList *list);

Call this function on the list returned by `mate_vfs_mime_get_extensions_list()` to free the `list` and all of its elements.

`list` : | the extensions list.

### mate_vfs_mime_get_extensions_string ()

    char *              mate_vfs_mime_get_extensions_string
                                                            (const char *mime_type);

### Warning

`mate_vfs_mime_get_extensions_string` is deprecated and should not be used in newly-written code.

`mime_type` : |
Returns : |

### mate_vfs_mime_get_extensions_pretty_string ()

    char *              mate_vfs_mime_get_extensions_pretty_string
                                                            (const char *mime_type);

### Warning

`mate_vfs_mime_get_extensions_pretty_string` is deprecated and should not be used in newly-written code.

`mime_type` : |
Returns : |

### mate_vfs_get_registered_mime_types ()

    GList *             mate_vfs_get_registered_mime_types (void);

### Warning

`mate_vfs_get_registered_mime_types` is deprecated and should not be used in newly-written code.

Returns : |

### mate_vfs_mime_registered_mime_type_list_free ()

    void                mate_vfs_mime_registered_mime_type_list_free
                                                            (GList *list);

### Warning

`mate_vfs_mime_registered_mime_type_list_free` is deprecated and should not be used in newly-written code.

`list` : |

### mate_vfs_mime_set_registered_type_key ()

    MateVFSResult      mate_vfs_mime_set_registered_type_key
                                                            (const char *mime_type,
                                                             const char *key,
                                                             const char *data);

`mime_type` : |
`key` : |
`data` : |
Returns : |

### mate_vfs_mime_set_extensions_list ()

    MateVFSResult      mate_vfs_mime_set_extensions_list  (const char *mime_type,
                                                             const char *extensions_list);

### Warning

`mate_vfs_mime_set_extensions_list` is deprecated and should not be used in newly-written code.

`mime_type` : |
`extensions_list` : |
Returns : |

### mate_vfs_mime_registered_mime_type_delete ()

    void                mate_vfs_mime_registered_mime_type_delete
                                                            (const char *mime_type);

### Warning

`mate_vfs_mime_registered_mime_type_delete` is deprecated and should not be used in newly-written code.

`mime_type` : |

### mate_vfs_mime_reset ()

    void                mate_vfs_mime_reset                (void);

### Warning

`mate_vfs_mime_reset` is deprecated and should not be used in newly-written code.