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

<refnamediv>
<refname>GnomeVFSResult</refname>
<refpurpose>
Result of I/O operations, the equivalent of errno</refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

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

<synopsis>



enum        <link linkend="GnomeVFSResult">GnomeVFSResult</link>;
const <link linkend="char">char</link>* <link linkend="gnome-vfs-result-to-string">gnome_vfs_result_to_string</link>      (<link linkend="GnomeVFSResult">GnomeVFSResult</link> result);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-result-from-errno-code">gnome_vfs_result_from_errno_code</link>
                                            (<link linkend="int">int</link> errno_code);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-result-from-errno">gnome_vfs_result_from_errno</link>  (void);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-result-from-h-errno">gnome_vfs_result_from_h_errno</link>
                                            (void);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-result-from-h-errno-val">gnome_vfs_result_from_h_errno_val</link>
                                            (<link linkend="int">int</link> h_errno_code);
</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="GnomeVFSResult" role="enum"/>enum GnomeVFSResult</title>
<indexterm><primary>GnomeVFSResult</primary></indexterm><programlisting>typedef enum {
	GNOME_VFS_OK,
	GNOME_VFS_ERROR_NOT_FOUND,
	GNOME_VFS_ERROR_GENERIC,
	GNOME_VFS_ERROR_INTERNAL,
	GNOME_VFS_ERROR_BAD_PARAMETERS,
	GNOME_VFS_ERROR_NOT_SUPPORTED,
	GNOME_VFS_ERROR_IO,
	GNOME_VFS_ERROR_CORRUPTED_DATA,
	GNOME_VFS_ERROR_WRONG_FORMAT,
	GNOME_VFS_ERROR_BAD_FILE,
	GNOME_VFS_ERROR_TOO_BIG,
	GNOME_VFS_ERROR_NO_SPACE,
	GNOME_VFS_ERROR_READ_ONLY,
	GNOME_VFS_ERROR_INVALID_URI,
	GNOME_VFS_ERROR_NOT_OPEN,
	GNOME_VFS_ERROR_INVALID_OPEN_MODE,
	GNOME_VFS_ERROR_ACCESS_DENIED,
	GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES,
	GNOME_VFS_ERROR_EOF,
	GNOME_VFS_ERROR_NOT_A_DIRECTORY,
	GNOME_VFS_ERROR_IN_PROGRESS,
	GNOME_VFS_ERROR_INTERRUPTED,
	GNOME_VFS_ERROR_FILE_EXISTS,
	GNOME_VFS_ERROR_LOOP,
	GNOME_VFS_ERROR_NOT_PERMITTED,
	GNOME_VFS_ERROR_IS_DIRECTORY,
	GNOME_VFS_ERROR_NO_MEMORY,
	GNOME_VFS_ERROR_HOST_NOT_FOUND,
	GNOME_VFS_ERROR_INVALID_HOST_NAME,
	GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS,
	GNOME_VFS_ERROR_LOGIN_FAILED,
	GNOME_VFS_ERROR_CANCELLED,
	GNOME_VFS_ERROR_DIRECTORY_BUSY,
	GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY,
	GNOME_VFS_ERROR_TOO_MANY_LINKS,
	GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM,
	GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM,
	GNOME_VFS_ERROR_NAME_TOO_LONG,
	GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE,
	GNOME_VFS_ERROR_SERVICE_OBSOLETE,
	GNOME_VFS_ERROR_PROTOCOL_ERROR,
	GNOME_VFS_ERROR_NO_MASTER_BROWSER,
	GNOME_VFS_ERROR_NO_DEFAULT,
	GNOME_VFS_ERROR_NO_HANDLER,
	GNOME_VFS_ERROR_PARSE,
	GNOME_VFS_ERROR_LAUNCH,
	GNOME_VFS_ERROR_TIMEOUT,
	GNOME_VFS_ERROR_NAMESERVER,
	GNOME_VFS_ERROR_LOCKED,
	GNOME_VFS_ERROR_DEPRECATED_FUNCTION,
	GNOME_VFS_NUM_ERRORS
} GnomeVFSResult;
</programlisting>
<para>
 
</para></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-result-to-string" role="function"/>gnome_vfs_result_to_string ()</title>
<indexterm><primary>gnome_vfs_result_to_string</primary></indexterm><programlisting>const <link linkend="char">char</link>* gnome_vfs_result_to_string      (<link linkend="GnomeVFSResult">GnomeVFSResult</link> result);</programlisting>
<para>
Returns a string representing <parameter>result</parameter>, useful for debugging
purposes, but probably not appropriate for passing to the user.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>result</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> to convert to a string.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a string representing <parameter>result</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-result-from-errno-code" role="function"/>gnome_vfs_result_from_errno_code ()</title>
<indexterm><primary>gnome_vfs_result_from_errno_code</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_result_from_errno_code
                                            (<link linkend="int">int</link> errno_code);</programlisting>
<para>
Converts a system errno value to a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>errno_code</parameter>&nbsp;:</term>
<listitem><simpara> integer of the same type as the system "errno".
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> equivalent to <parameter>errno_code</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-result-from-errno" role="function"/>gnome_vfs_result_from_errno ()</title>
<indexterm><primary>gnome_vfs_result_from_errno</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_result_from_errno  (void);</programlisting>
<para>
Converts the system errno to a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> equivalent to the current system errno.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-result-from-h-errno" role="function"/>gnome_vfs_result_from_h_errno ()</title>
<indexterm><primary>gnome_vfs_result_from_h_errno</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_result_from_h_errno
                                            (void);</programlisting>
<para>
Converts the system "h_errno" to a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> (h_errno represents errors
accessing and finding internet hosts)</para>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> equivalent to the current system "h_errno".
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-result-from-h-errno-val" role="function"/>gnome_vfs_result_from_h_errno_val ()</title>
<indexterm><primary>gnome_vfs_result_from_h_errno_val</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_result_from_h_errno_val
                                            (<link linkend="int">int</link> h_errno_code);</programlisting>
<para>
Converts the error code <parameter>h_errno_code</parameter> into a <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>h_errno_code</parameter>&nbsp;:</term>
<listitem><simpara> an integer representing the same error code
as the system h_errno.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The <link linkend="GnomeVFSResult"><type>GnomeVFSResult</type></link> equivalent to the <parameter>h_errno_code</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
