All the GNOME VFS operations return a result value of type GnomeVFSResult that represents the result of the operation. GnomeVFSURI is a numeric enumeration:
enum _GnomeVFSResult {
GNOME_VFS_OK,
GNOME_VFS_ERROR_NOTFOUND,
GNOME_VFS_ERROR_GENERIC,
GNOME_VFS_ERROR_INTERNAL,
GNOME_VFS_ERROR_BADPARAMS,
GNOME_VFS_ERROR_NOTSUPPORTED,
GNOME_VFS_ERROR_IO,
GNOME_VFS_ERROR_CORRUPTEDDATA,
/* ... */
GNOME_VFS_NUM_ERRORS
};
typedef enum _GnomeVFSResult
GnomeVFSResult;
Just like the Unix errno variable, you can get a string description from a GnomeVFSURI value by using the following function:
const gchar *gnome_vfs_result_to_string
(GnomeVFSResult result)