## GnomeVFSResult

GnomeVFSResult — Result of I/O operations, the equivalent of errno

## Synopsis

    enum        GnomeVFSResult;
    const char* gnome_vfs_result_to_string      (GnomeVFSResult result);
    GnomeVFSResult gnome_vfs_result_from_errno_code
                                                (int errno_code);
    GnomeVFSResult gnome_vfs_result_from_errno  (void);
    GnomeVFSResult gnome_vfs_result_from_h_errno
                                                (void);
    GnomeVFSResult gnome_vfs_result_from_h_errno_val
                                                (int h_errno_code);

## Description

## Details

### enum GnomeVFSResult

    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;

### gnome_vfs_result_to_string ()

    const char* gnome_vfs_result_to_string      (GnomeVFSResult result);

Returns a string representation of `result`, useful for debugging purposes, but probably not appropriate for passing to the user.

`result` : | the result to convert to a string
Returns : | a string representing `result`

### gnome_vfs_result_from_errno_code ()

    GnomeVFSResult gnome_vfs_result_from_errno_code
                                                (int errno_code);

Converts a system errno value to a GnomeVFSResult.

`errno_code` : | integer of the same type as the system "errno"
Returns : | a GnomeVFSResult equivalent to `errno_code`

### gnome_vfs_result_from_errno ()

    GnomeVFSResult gnome_vfs_result_from_errno  (void);

Converts the system errno to a GnomeVFSResult.

Returns : | a GnomeVFSResult equivalent to the current system errno

### gnome_vfs_result_from_h_errno ()

    GnomeVFSResult gnome_vfs_result_from_h_errno
                                                (void);

Converts the system "h_errno" to a GnomeVFSResult (h_errno represents errors accessing and finding internet hosts)

Returns : | a GnomeVFSResult equivalent to the current system "h_errno"

### gnome_vfs_result_from_h_errno_val ()

    GnomeVFSResult gnome_vfs_result_from_h_errno_val
                                                (int h_errno_code);

Converts the error code of `h_errno` into a GnomeVFSResult.

`h_errno_code` : | A integer containing representing the same error codes as the system h_errno.
Returns : | The GnomeVFSResult equivalent to the h_errno error code.