<refentry id="gnome-vfs-20-gnome-vfs-mime-database-deprecated">
<refmeta>
<refentrytitle id="top_of_page">gnome-vfs-mime-database-deprecated</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GNOME-VFS-2.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>gnome-vfs-mime-database-deprecated</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv id="synopsis">
<title id="synopsis.title">Synopsis</title>

<synopsis>



enum        <link linkend="GnomeVFSMimeActionType">GnomeVFSMimeActionType</link>;
enum        <link linkend="GnomeVFSMimeApplicationArgumentType">GnomeVFSMimeApplicationArgumentType</link>;
            <link linkend="GnomeVFSMimeAction">GnomeVFSMimeAction</link>;
<link linkend="GnomeVFSMimeActionType">GnomeVFSMimeActionType</link> <link linkend="gnome-vfs-mime-get-default-action-type">gnome_vfs_mime_get_default_action_type</link>
                                            (const <link linkend="char">char</link> *mime_type);
<link linkend="GnomeVFSMimeAction">GnomeVFSMimeAction</link>* <link linkend="gnome-vfs-mime-get-default-action">gnome_vfs_mime_get_default_action</link>
                                            (const <link linkend="char">char</link> *mime_type);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-mime-get-short-list-applications">gnome_vfs_mime_get_short_list_applications</link>
                                            (const <link linkend="char">char</link> *mime_type);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-mime-get-short-list-components">gnome_vfs_mime_get_short_list_components</link>
                                            (const <link linkend="char">char</link> *mime_type);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-default-action-type">gnome_vfs_mime_set_default_action_type</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GnomeVFSMimeActionType">GnomeVFSMimeActionType</link> action_type);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-icon">gnome_vfs_mime_set_icon</link>      (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *filename);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-description">gnome_vfs_mime_set_description</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *description);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-can-be-executable">gnome_vfs_mime_set_can_be_executable</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="gboolean">gboolean</link> new_value);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-short-list-applications">gnome_vfs_mime_set_short_list_applications</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GList">GList</link> *application_ids);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-short-list-components">gnome_vfs_mime_set_short_list_components</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GList">GList</link> *component_iids);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-add-application-to-short-list">gnome_vfs_mime_add_application_to_short_list</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *application_id);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-remove-application-from-short-list">gnome_vfs_mime_remove_application_from_short_list</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *application_id);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-add-component-to-short-list">gnome_vfs_mime_add_component_to_short_list</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *iid);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-remove-component-from-short-list">gnome_vfs_mime_remove_component_from_short_list</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *iid);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-add-extension">gnome_vfs_mime_add_extension</link> (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *extension);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-remove-extension">gnome_vfs_mime_remove_extension</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *extension);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-extend-all-applications">gnome_vfs_mime_extend_all_applications</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GList">GList</link> *application_ids);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-remove-from-all-applications">gnome_vfs_mime_remove_from_all_applications</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GList">GList</link> *application_ids);
<link linkend="GnomeVFSMimeApplication">GnomeVFSMimeApplication</link>* <link linkend="gnome-vfs-mime-application-new-from-id">gnome_vfs_mime_application_new_from_id</link>
                                            (const <link linkend="char">char</link> *id);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-action-free">gnome_vfs_mime_action_free</link>      (<link linkend="GnomeVFSMimeAction">GnomeVFSMimeAction</link> *action);
<link linkend="gboolean">gboolean</link>    <link linkend="gnome-vfs-mime-id-in-application-list">gnome_vfs_mime_id_in_application_list</link>
                                            (const <link linkend="char">char</link> *id,
                                             <link linkend="GList">GList</link> *applications);
<link linkend="gboolean">gboolean</link>    <link linkend="gnome-vfs-mime-id-in-component-list">gnome_vfs_mime_id_in_component_list</link>
                                            (const <link linkend="char">char</link> *iid,
                                             <link linkend="GList">GList</link> *components);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-mime-remove-application-from-list">gnome_vfs_mime_remove_application_from_list</link>
                                            (<link linkend="GList">GList</link> *applications,
                                             const <link linkend="char">char</link> *application_id,
                                             <link linkend="gboolean">gboolean</link> *did_remove);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-mime-remove-component-from-list">gnome_vfs_mime_remove_component_from_list</link>
                                            (<link linkend="GList">GList</link> *components,
                                             const <link linkend="char">char</link> *iid,
                                             <link linkend="gboolean">gboolean</link> *did_remove);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-mime-id-list-from-component-list">gnome_vfs_mime_id_list_from_component_list</link>
                                            (<link linkend="GList">GList</link> *components);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-mime-id-list-from-application-list">gnome_vfs_mime_id_list_from_application_list</link>
                                            (<link linkend="GList">GList</link> *applications);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-freeze">gnome_vfs_mime_freeze</link>           (void);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-thaw">gnome_vfs_mime_thaw</link>             (void);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-info-reload">gnome_vfs_mime_info_reload</link>      (void);
<link linkend="gboolean">gboolean</link>    <link linkend="gnome-vfs-mime-type-is-known">gnome_vfs_mime_type_is_known</link>    (const <link linkend="char">char</link> *mime_type);
const <link linkend="char">char</link>* <link linkend="gnome-vfs-mime-get-value">gnome_vfs_mime_get_value</link>        (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *key);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-value">gnome_vfs_mime_set_value</link>     (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *key,
                                             const <link linkend="char">char</link> *value);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-mime-get-key-list">gnome_vfs_mime_get_key_list</link>     (const <link linkend="char">char</link> *mime_type);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-keys-list-free">gnome_vfs_mime_keys_list_free</link>   (<link linkend="GList">GList</link> *mime_type_list);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-mime-get-extensions-list">gnome_vfs_mime_get_extensions_list</link>
                                            (const <link linkend="char">char</link> *mime_type);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-extensions-list-free">gnome_vfs_mime_extensions_list_free</link>
                                            (<link linkend="GList">GList</link> *list);
<link linkend="char">char</link>*       <link linkend="gnome-vfs-mime-get-extensions-string">gnome_vfs_mime_get_extensions_string</link>
                                            (const <link linkend="char">char</link> *mime_type);
<link linkend="char">char</link>*       <link linkend="gnome-vfs-mime-get-extensions-pretty-string">gnome_vfs_mime_get_extensions_pretty_string</link>
                                            (const <link linkend="char">char</link> *mime_type);
<link linkend="GList">GList</link>*      <link linkend="gnome-vfs-get-registered-mime-types">gnome_vfs_get_registered_mime_types</link>
                                            (void);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-registered-mime-type-list-free">gnome_vfs_mime_registered_mime_type_list_free</link>
                                            (<link linkend="GList">GList</link> *list);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-registered-type-key">gnome_vfs_mime_set_registered_type_key</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *key,
                                             const <link linkend="char">char</link> *data);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-mime-set-extensions-list">gnome_vfs_mime_set_extensions_list</link>
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *extensions_list);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-registered-mime-type-delete">gnome_vfs_mime_registered_mime_type_delete</link>
                                            (const <link linkend="char">char</link> *mime_type);
<link linkend="void">void</link>        <link linkend="gnome-vfs-mime-reset">gnome_vfs_mime_reset</link>            (void);
</synopsis>
</refsynopsisdiv>









<refsect1 id="desc">
<title id="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 id="details">
<title id="details.title">Details</title>
<refsect2>
<title><anchor id="GnomeVFSMimeActionType" role="enum" condition="deprecated:"/>enum GnomeVFSMimeActionType</title>
<indexterm role="deprecated"><primary>GnomeVFSMimeActionType</primary></indexterm><programlisting>typedef enum {
	GNOME_VFS_MIME_ACTION_TYPE_NONE,
	GNOME_VFS_MIME_ACTION_TYPE_APPLICATION,
	GNOME_VFS_MIME_ACTION_TYPE_COMPONENT
} GnomeVFSMimeActionType;
</programlisting>
<warning><para><literal>GnomeVFSMimeActionType</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GnomeVFSMimeApplicationArgumentType" role="enum"/>enum GnomeVFSMimeApplicationArgumentType</title>
<indexterm><primary>GnomeVFSMimeApplicationArgumentType</primary></indexterm><programlisting>typedef enum {
	GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS,
	GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_PATHS,
	GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS_FOR_NON_FILES
} GnomeVFSMimeApplicationArgumentType;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GnomeVFSMimeAction" role="struct" condition="deprecated:"/>GnomeVFSMimeAction</title>
<indexterm role="deprecated"><primary>GnomeVFSMimeAction</primary></indexterm><programlisting>typedef struct {
	GnomeVFSMimeActionType action_type;
	union {
		Bonobo_ServerInfo *component;
		void *dummy_component;
		GnomeVFSMimeApplication *application;
} GnomeVFSMimeAction;
</programlisting>
<warning><para><literal>GnomeVFSMimeAction</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
This data structure describes an action that can be done 
on a file.</para>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-default-action-type" role="function" condition="deprecated"/>gnome_vfs_mime_get_default_action_type ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_get_default_action_type</primary></indexterm><programlisting><link linkend="GnomeVFSMimeActionType">GnomeVFSMimeActionType</link> gnome_vfs_mime_get_default_action_type
                                            (const <link linkend="char">char</link> *mime_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_get_default_action_type</literal> 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 except for directories where component is
returned</para></warning>
<para>
Query the MIME database for the type of action to be performed on <parameter>mime_type</parameter>.
</para>
<para>
Return value:</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The type of action to be performed on a file of 
MIME type <parameter>mime_type</parameter> by default.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-default-action" role="function" condition="deprecated:Use gnome_vfs_mime_get_default_application() instead."/>gnome_vfs_mime_get_default_action ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_get_default_action</primary></indexterm><programlisting><link linkend="GnomeVFSMimeAction">GnomeVFSMimeAction</link>* gnome_vfs_mime_get_default_action
                                            (const <link linkend="char">char</link> *mime_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_get_default_action</literal> is deprecated and should not be used in newly-written code. Use <link linkend="gnome-vfs-mime-get-default-application"><function>gnome_vfs_mime_get_default_application()</function></link> instead.</para></warning>
<para>
Query the MIME database for default action associated with <parameter>mime_type</parameter>.
</para>
<para>
Return value:</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSMimeAction"><type>GnomeVFSMimeAction</type></link> representing the default action to perform upon
file of type <parameter>mime_type</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-short-list-applications" role="function" condition="deprecated:Use gnome_vfs_mime_get_all_applications() instead."/>gnome_vfs_mime_get_short_list_applications ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_get_short_list_applications</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_mime_get_short_list_applications
                                            (const <link linkend="char">char</link> *mime_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_get_short_list_applications</literal> is deprecated and should not be used in newly-written code. Use <link linkend="gnome-vfs-mime-get-all-applications"><function>gnome_vfs_mime_get_all_applications()</function></link> instead.</para></warning>
<para>
Return an alphabetically sorted list of <link linkend="GnomeVFSMimeApplication"><type>GnomeVFSMimeApplication</type></link> data
structures for the <parameter>mime_type</parameter>. gnome-vfs no longer supports the
concept of a "short list" of applications that the user might be interested
in.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "image/png".
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GList"><type>GList</type></link> * where the elements are <link linkend="GnomeVFSMimeApplication"><type>GnomeVFSMimeApplication</type></link> *
representing various applications to display in the short list for <parameter>mime_type</parameter>.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-short-list-components" role="function" condition="deprecated:Use gnome_vfs_mime_get_all_components() instead."/>gnome_vfs_mime_get_short_list_components ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_get_short_list_components</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_mime_get_short_list_components
                                            (const <link linkend="char">char</link> *mime_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_get_short_list_components</literal> is deprecated and should not be used in newly-written code. Use <link linkend="gnome-vfs-mime-get-all-components"><function>gnome_vfs_mime_get_all_components()</function></link> instead.</para></warning>
<para>
Return an unsorted sorted list of <link linkend="Bonobo-ServerInfo"><type>Bonobo_ServerInfo</type></link> * data structures for the
<parameter>mime_type</parameter>. gnome-vfs no longer supports the concept of a "short
list" of applications that the user might be interested in.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "image/png".
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GList"><type>GList</type></link> * where the elements are <link linkend="Bonobo-ServerInfo"><type>Bonobo_ServerInfo</type></link> *
representing various components to display in the short list for <parameter>mime_type</parameter>.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-default-action-type" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_set_default_action_type ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_set_default_action_type</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_default_action_type
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GnomeVFSMimeActionType">GnomeVFSMimeActionType</link> action_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_set_default_action_type</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Sets the default action type to be performed on files of <parameter>mime_type</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "image/png".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>action_type</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeVFSMimeActionType"><type>GnomeVFSMimeActionType</type></link> containing the action to perform by default.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-icon" role="function" condition="deprecated"/>gnome_vfs_mime_set_icon ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_set_icon</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_icon      (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *filename);</programlisting>
<warning><para><literal>gnome_vfs_mime_set_icon</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer
supported in gnome-vfs.</para></warning>
<para>
Set the icon entry for <parameter>mime_type</parameter> 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.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a  MIME type.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing an image filename.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation
or any errors that may have occurred.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-description" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_set_description ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_set_description</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_description
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *description);</programlisting>
<warning><para><literal>gnome_vfs_mime_set_description</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Set the <parameter>description</parameter> of this MIME type in the MIME database. The <parameter>description</parameter>
should be something like "Gnumeric spreadsheet".</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>description</parameter>&nbsp;:</term>
<listitem><simpara> a description of this MIME type.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or any
errors that may have occurred.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-can-be-executable" role="function" condition="deprecated:"/>gnome_vfs_mime_set_can_be_executable ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_set_can_be_executable</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_can_be_executable
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="gboolean">gboolean</link> new_value);</programlisting>
<warning><para><literal>gnome_vfs_mime_set_can_be_executable</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Set whether files of <parameter>mime_type</parameter> might conceivably be executable.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>new_value</parameter>&nbsp;:</term>
<listitem><simpara> a boolean value indicating whether <parameter>mime_type</parameter> could be executable.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or any
errors that may have occurred.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-short-list-applications" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_set_short_list_applications ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_set_short_list_applications</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_short_list_applications
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GList">GList</link> *application_ids);</programlisting>
<warning><para><literal>gnome_vfs_mime_set_short_list_applications</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Set the short list of applications for the specified MIME type. The short list
contains applications recommended for possible selection by the user.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>application_ids</parameter>&nbsp;:</term>
<listitem><simpara> <link linkend="GList"><type>GList</type></link> of const char * application ids.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-short-list-components" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_set_short_list_components ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_set_short_list_components</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_short_list_components
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GList">GList</link> *component_iids);</programlisting>
<warning><para><literal>gnome_vfs_mime_set_short_list_components</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Set the short list of components for the <parameter>mime_type</parameter>. The short list
contains companents recommended for possible selection by the user.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>component_iids</parameter>&nbsp;:</term>
<listitem><simpara> <link linkend="GList"><type>GList</type></link> of const char * OAFIIDs.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-add-application-to-short-list" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_add_application_to_short_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_add_application_to_short_list</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_add_application_to_short_list
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *application_id);</programlisting>
<warning><para><literal>gnome_vfs_mime_add_application_to_short_list</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Add an application to the short list for <parameter>mime_type</parameter>. The short list contains
applications recommended for display as choices to the user for a particular MIME type.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>application_id</parameter>&nbsp;:</term>
<listitem><simpara> const char * containing the application's id in the MIME database.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-remove-application-from-short-list" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_remove_application_from_short_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_remove_application_from_short_list</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_remove_application_from_short_list
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *application_id);</programlisting>
<warning><para><literal>gnome_vfs_mime_remove_application_from_short_list</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Remove an application specified by <parameter>application_id</parameter> from the short list for <parameter>mime_type</parameter>. A short list contains
applications recommended for display as choices to the user for a particular MIME type.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>application_id</parameter>&nbsp;:</term>
<listitem><simpara> const char * containing the application's id in the MIME database.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-add-component-to-short-list" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_add_component_to_short_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_add_component_to_short_list</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_add_component_to_short_list
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *iid);</programlisting>
<warning><para><literal>gnome_vfs_mime_add_component_to_short_list</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Add a component to the short list for <parameter>mime_type</parameter>. A short list contains
components recommended for display as choices to the user for a particular MIME type.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>iid</parameter>&nbsp;:</term>
<listitem><simpara> const char * containing the component's OAFIID.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-remove-component-from-short-list" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_remove_component_from_short_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_remove_component_from_short_list</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_remove_component_from_short_list
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *iid);</programlisting>
<warning><para><literal>gnome_vfs_mime_remove_component_from_short_list</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Remove a component from the short list for <parameter>mime_type</parameter>. The short list contains
components recommended for display as choices to the user for a particular MIME type.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>iid</parameter>&nbsp;:</term>
<listitem><simpara> const char * containing the component's OAFIID.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-add-extension" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_add_extension ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_add_extension</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_add_extension (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *extension);</programlisting>
<warning><para><literal>gnome_vfs_mime_add_extension</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Add a file extension to the specificed MIME type in the MIME database.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> mime type to add the mapping to.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>extension</parameter>&nbsp;:</term>
<listitem><simpara> extension to add (e.g. "txt").
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or any
errors that may have occurred.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-remove-extension" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_remove_extension ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_remove_extension</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_remove_extension
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *extension);</programlisting>
<warning><para><literal>gnome_vfs_mime_remove_extension</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Removes a file extension from the <parameter>mime_type</parameter> in the MIME database.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> mime type to remove the extension from.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>extension</parameter>&nbsp;:</term>
<listitem><simpara> extension to remove.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or any
errors that may have occurred.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-extend-all-applications" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_extend_all_applications ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_extend_all_applications</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_extend_all_applications
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GList">GList</link> *application_ids);</programlisting>
<warning><para><literal>gnome_vfs_mime_extend_all_applications</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Register <parameter>mime_type</parameter> as being handled by all applications list in <parameter>application_ids</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>application_ids</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GList"><type>GList</type></link> of const char * containing application ids.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-remove-from-all-applications" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_remove_from_all_applications ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_remove_from_all_applications</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_remove_from_all_applications
                                            (const <link linkend="char">char</link> *mime_type,
                                             <link linkend="GList">GList</link> *application_ids);</programlisting>
<warning><para><literal>gnome_vfs_mime_remove_from_all_applications</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Remove <parameter>mime_type</parameter> as a handled type from every application in <parameter>application_ids</parameter></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing a mime type, e.g. "application/x-php".
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>application_ids</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GList"><type>GList</type></link> of const char * containing application ids.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> indicating the success of the operation or reporting 
any errors encountered.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-application-new-from-id" role="function" condition="deprecated"/>gnome_vfs_mime_application_new_from_id ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_application_new_from_id</primary></indexterm><programlisting><link linkend="GnomeVFSMimeApplication">GnomeVFSMimeApplication</link>* gnome_vfs_mime_application_new_from_id
                                            (const <link linkend="char">char</link> *id);</programlisting>
<warning><para><literal>gnome_vfs_mime_application_new_from_id</literal> is deprecated and should not be used in newly-written code. Use <link linkend="gnome-vfs-mime-application-new-from-desktop-id"><function>gnome_vfs_mime_application_new_from_desktop_id()</function></link>
instead.</para></warning>
<para>
Fetches the <link linkend="GnomeVFSMimeApplication"><type>GnomeVFSMimeApplication</type></link> associated with the specified
application <parameter>id</parameter> from the MIME database.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
<listitem><simpara> a const char * containing an application id.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSMimeApplication"><type>GnomeVFSMimeApplication</type></link> * corresponding to <parameter>id</parameter>.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-action-free" role="function" condition="deprecated"/>gnome_vfs_mime_action_free ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_action_free</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_action_free      (<link linkend="GnomeVFSMimeAction">GnomeVFSMimeAction</link> *action);</programlisting>
<warning><para><literal>gnome_vfs_mime_action_free</literal> is deprecated and should not be used in newly-written code. <link linkend="GnomeVFSMimeAction"><type>GnomeVFSMimeAction</type></link> structures should not be used in new
code.</para></warning>
<para>
Frees a <link linkend="GnomeVFSMimeAction"><type>GnomeVFSMimeAction</type></link> *.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>action</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeVFSMimeAction"><type>GnomeVFSMimeAction</type></link> to be freed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-id-in-application-list" role="function" condition="deprecated:"/>gnome_vfs_mime_id_in_application_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_id_in_application_list</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>    gnome_vfs_mime_id_in_application_list
                                            (const <link linkend="char">char</link> *id,
                                             <link linkend="GList">GList</link> *applications);</programlisting>
<warning><para><literal>gnome_vfs_mime_id_in_application_list</literal> is deprecated and should not be used in newly-written code. </para></warning>
<para>
Check whether an application id is in a list of <link linkend="GnomeVFSMimeApplications"><type>GnomeVFSMimeApplications</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
<listitem><simpara> an application id.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>applications</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GList"><type>GList</type></link> * whose nodes are <link linkend="GnomeVFSMimeApplications"><type>GnomeVFSMimeApplications</type></link>, such as the
result of <link linkend="gnome-vfs-mime-get-short-list-applications"><function>gnome_vfs_mime_get_short_list_applications()</function></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <literal>TRUE</literal> if an application whose id matches <parameter>id</parameter> is in <parameter>applications</parameter>.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-id-in-component-list" role="function" condition="deprecated:"/>gnome_vfs_mime_id_in_component_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_id_in_component_list</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>    gnome_vfs_mime_id_in_component_list
                                            (const <link linkend="char">char</link> *iid,
                                             <link linkend="GList">GList</link> *components);</programlisting>
<warning><para><literal>gnome_vfs_mime_id_in_component_list</literal> is deprecated and should not be used in newly-written code. </para></warning>
<para>
Check whether a component iid is in a list of <link linkend="Bonobo-ServerInfos"><type>Bonobo_ServerInfos</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>iid</parameter>&nbsp;:</term>
<listitem><simpara> a component iid.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>components</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GList"><type>GList</type></link> * whose nodes are <link linkend="Bonobo-ServerInfos"><type>Bonobo_ServerInfos</type></link>, such as the
result of <link linkend="gnome-vfs-mime-get-short-list-components"><function>gnome_vfs_mime_get_short_list_components()</function></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <literal>TRUE</literal> if a component whose iid matches <parameter>iid</parameter> is in <parameter>components</parameter>.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-remove-application-from-list" role="function" condition="deprecated:User modifications to the MIME database are no longer supported by gnome-vfs."/>gnome_vfs_mime_remove_application_from_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_remove_application_from_list</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_mime_remove_application_from_list
                                            (<link linkend="GList">GList</link> *applications,
                                             const <link linkend="char">char</link> *application_id,
                                             <link linkend="gboolean">gboolean</link> *did_remove);</programlisting>
<warning><para><literal>gnome_vfs_mime_remove_application_from_list</literal> is deprecated and should not be used in newly-written code. User modifications to the MIME database are no longer supported by gnome-vfs.</para></warning>
<para>
Remove an application specified by id from a list of <link linkend="GnomeVFSMimeApplications"><type>GnomeVFSMimeApplications</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>applications</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GList"><type>GList</type></link> * whose nodes are <link linkend="GnomeVFSMimeApplications"><type>GnomeVFSMimeApplications</type></link>, such as the
result of <link linkend="gnome-vfs-mime-get-short-list-applications"><function>gnome_vfs_mime_get_short_list_applications()</function></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>application_id</parameter>&nbsp;:</term>
<listitem><simpara> id of an application to remove from <parameter>applications</parameter>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>did_remove</parameter>&nbsp;:</term>
<listitem><simpara> If non-NULL, this is filled in with <literal>TRUE</literal> if the application
was found in the list, <literal>FALSE</literal> otherwise.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The modified list. If the application is not found, the list will 
be unchanged.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-remove-component-from-list" role="function" condition="deprecated:"/>gnome_vfs_mime_remove_component_from_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_remove_component_from_list</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_mime_remove_component_from_list
                                            (<link linkend="GList">GList</link> *components,
                                             const <link linkend="char">char</link> *iid,
                                             <link linkend="gboolean">gboolean</link> *did_remove);</programlisting>
<warning><para><literal>gnome_vfs_mime_remove_component_from_list</literal> is deprecated and should not be used in newly-written code. </para></warning>
<para>
Remove a component specified by iid from a list of <link linkend="Bonobo-ServerInfos"><type>Bonobo_ServerInfos</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>components</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GList"><type>GList</type></link> * whose nodes are <link linkend="Bonobo-ServerInfos"><type>Bonobo_ServerInfos</type></link>, such as the
result of <link linkend="gnome-vfs-mime-get-short-list-components"><function>gnome_vfs_mime_get_short_list_components()</function></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>iid</parameter>&nbsp;:</term>
<listitem><simpara> The iid of a component to remove from <parameter>components</parameter>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>did_remove</parameter>&nbsp;:</term>
<listitem><simpara> If non-NULL, this is filled in with <literal>TRUE</literal> if the component
was found in the list, <literal>FALSE</literal> otherwise.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The modified list. If the component is not found, the list will 
be unchanged.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-id-list-from-component-list" role="function" condition="deprecated:"/>gnome_vfs_mime_id_list_from_component_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_id_list_from_component_list</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_mime_id_list_from_component_list
                                            (<link linkend="GList">GList</link> *components);</programlisting>
<warning><para><literal>gnome_vfs_mime_id_list_from_component_list</literal> is deprecated and should not be used in newly-written code. </para></warning>
<para>
Create a list of component iids from a list of <link linkend="Bonobo-ServerInfos"><type>Bonobo_ServerInfos</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>components</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GList"><type>GList</type></link> * whose nodes are <link linkend="Bonobo-ServerInfos"><type>Bonobo_ServerInfos</type></link>, such as the
result of <link linkend="gnome-vfs-mime-get-short-list-components"><function>gnome_vfs_mime_get_short_list_components()</function></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a new <link linkend="GList"><type>GList</type></link> where each <link linkend="Bonobo-ServerInfo"><type>Bonobo_ServerInfo</type></link> in the original
list is replaced by a char * with the component's iid. The original list is
not modified.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-id-list-from-application-list" role="function" condition="deprecated:"/>gnome_vfs_mime_id_list_from_application_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_id_list_from_application_list</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_mime_id_list_from_application_list
                                            (<link linkend="GList">GList</link> *applications);</programlisting>
<warning><para><literal>gnome_vfs_mime_id_list_from_application_list</literal> is deprecated and should not be used in newly-written code. </para></warning>
<para>
Create a list of application ids from a list of <link linkend="GnomeVFSMimeApplications"><type>GnomeVFSMimeApplications</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>applications</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GList"><type>GList</type></link> * whose nodes are GnomeVFSMimeApplications, such as the
result of <link linkend="gnome-vfs-mime-get-short-list-applications"><function>gnome_vfs_mime_get_short_list_applications()</function></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a new list where each <link linkend="GnomeVFSMimeApplication"><type>GnomeVFSMimeApplication</type></link> in the original
list is replaced by a char * with the application's id. The original list is
not modified.

</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-freeze" role="function"/>gnome_vfs_mime_freeze ()</title>
<indexterm><primary>gnome_vfs_mime_freeze</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_freeze           (void);</programlisting>
<para>
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.</para>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-thaw" role="function"/>gnome_vfs_mime_thaw ()</title>
<indexterm><primary>gnome_vfs_mime_thaw</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_thaw             (void);</programlisting>
<para>
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.</para>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-info-reload" role="function"/>gnome_vfs_mime_info_reload ()</title>
<indexterm><primary>gnome_vfs_mime_info_reload</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_info_reload      (void);</programlisting>
<para>
Reload the MIME database from disk and notify any listeners
holding active <link linkend="GnomeVFSMIMEMonitor"><type>GnomeVFSMIMEMonitor</type></link> objects.</para>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-type-is-known" role="function"/>gnome_vfs_mime_type_is_known ()</title>
<indexterm><primary>gnome_vfs_mime_type_is_known</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>    gnome_vfs_mime_type_is_known    (const <link linkend="char">char</link> *mime_type);</programlisting>
<para>
This function returns <literal>TRUE</literal> if <parameter>mime_type</parameter> is in the MIME database at all.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a mime type.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <literal>TRUE</literal> if anything is known about <parameter>mime_type</parameter>, otherwise <literal>FALSE</literal>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-value" role="function"/>gnome_vfs_mime_get_value ()</title>
<indexterm><primary>gnome_vfs_mime_get_value</primary></indexterm><programlisting>const <link linkend="char">char</link>* gnome_vfs_mime_get_value        (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *key);</programlisting>
<para>
This function retrieves the value associated with <parameter>key</parameter> in
the given <link linkend="GnomeMimeContext"><type>GnomeMimeContext</type></link>.  The string is private, you
should not free the result.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a mime type.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>key</parameter>&nbsp;:</term>
<listitem><simpara> a key to lookup for the given <parameter>mime_type</parameter>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <literal>GNOME_VFS_OK</literal> if the operation succeeded, otherwise an error code.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-value" role="function" condition="deprecated:"/>gnome_vfs_mime_set_value ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_set_value</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_value     (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *key,
                                             const <link linkend="char">char</link> *value);</programlisting>
<warning><para><literal>gnome_vfs_mime_set_value</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
This function will set the <parameter>value</parameter> for the <parameter>key</parameter> and it will save it
to the user' file if necessary.
You should not free the <parameter>key</parameter>/<parameter>value</parameter> passed to this function.
They are used internally.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> a mime type.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>key</parameter>&nbsp;:</term>
<listitem><simpara> a key to store the value in.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>value</parameter>&nbsp;:</term>
<listitem><simpara> the value to store in the <parameter>key</parameter>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <literal>GNOME_VFS_OK</literal> if the operation succeeded, otherwise an error code.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-key-list" role="function" condition="deprecated:"/>gnome_vfs_mime_get_key_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_get_key_list</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_mime_get_key_list     (const <link linkend="char">char</link> *mime_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_get_key_list</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-keys-list-free" role="function" condition="deprecated:"/>gnome_vfs_mime_keys_list_free ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_keys_list_free</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_keys_list_free   (<link linkend="GList">GList</link> *mime_type_list);</programlisting>
<warning><para><literal>gnome_vfs_mime_keys_list_free</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type_list</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-extensions-list" role="function"/>gnome_vfs_mime_get_extensions_list ()</title>
<indexterm><primary>gnome_vfs_mime_get_extensions_list</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_mime_get_extensions_list
                                            (const <link linkend="char">char</link> *mime_type);</programlisting>
<para>
Get the file extensions associated with mime type <parameter>mime_type</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara> mime type to get the extensions of.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GList"><type>GList</type></link> of char *s.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-extensions-list-free" role="function"/>gnome_vfs_mime_extensions_list_free ()</title>
<indexterm><primary>gnome_vfs_mime_extensions_list_free</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_extensions_list_free
                                            (<link linkend="GList">GList</link> *list);</programlisting>
<para>
Call this function on the list returned by <link linkend="gnome-vfs-mime-get-extensions-list"><function>gnome_vfs_mime_get_extensions_list()</function></link>
to free the <parameter>list</parameter> and all of its elements.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>list</parameter>&nbsp;:</term>
<listitem><simpara> the extensions list.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-extensions-string" role="function" condition="deprecated:"/>gnome_vfs_mime_get_extensions_string ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_get_extensions_string</primary></indexterm><programlisting><link linkend="char">char</link>*       gnome_vfs_mime_get_extensions_string
                                            (const <link linkend="char">char</link> *mime_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_get_extensions_string</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-get-extensions-pretty-string" role="function" condition="deprecated:"/>gnome_vfs_mime_get_extensions_pretty_string ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_get_extensions_pretty_string</primary></indexterm><programlisting><link linkend="char">char</link>*       gnome_vfs_mime_get_extensions_pretty_string
                                            (const <link linkend="char">char</link> *mime_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_get_extensions_pretty_string</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-get-registered-mime-types" role="function" condition="deprecated:"/>gnome_vfs_get_registered_mime_types ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_get_registered_mime_types</primary></indexterm><programlisting><link linkend="GList">GList</link>*      gnome_vfs_get_registered_mime_types
                                            (void);</programlisting>
<warning><para><literal>gnome_vfs_get_registered_mime_types</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-registered-mime-type-list-free" role="function" condition="deprecated:"/>gnome_vfs_mime_registered_mime_type_list_free ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_registered_mime_type_list_free</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_registered_mime_type_list_free
                                            (<link linkend="GList">GList</link> *list);</programlisting>
<warning><para><literal>gnome_vfs_mime_registered_mime_type_list_free</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>list</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-registered-type-key" role="function"/>gnome_vfs_mime_set_registered_type_key ()</title>
<indexterm><primary>gnome_vfs_mime_set_registered_type_key</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_registered_type_key
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *key,
                                             const <link linkend="char">char</link> *data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>key</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-set-extensions-list" role="function" condition="deprecated:"/>gnome_vfs_mime_set_extensions_list ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_set_extensions_list</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_mime_set_extensions_list
                                            (const <link linkend="char">char</link> *mime_type,
                                             const <link linkend="char">char</link> *extensions_list);</programlisting>
<warning><para><literal>gnome_vfs_mime_set_extensions_list</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>extensions_list</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-registered-mime-type-delete" role="function" condition="deprecated:"/>gnome_vfs_mime_registered_mime_type_delete ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_registered_mime_type_delete</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_registered_mime_type_delete
                                            (const <link linkend="char">char</link> *mime_type);</programlisting>
<warning><para><literal>gnome_vfs_mime_registered_mime_type_delete</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mime_type</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-mime-reset" role="function" condition="deprecated:"/>gnome_vfs_mime_reset ()</title>
<indexterm role="deprecated"><primary>gnome_vfs_mime_reset</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_vfs_mime_reset            (void);</programlisting>
<warning><para><literal>gnome_vfs_mime_reset</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>

</para></refsect2>

</refsect1>




</refentry>
