| MateVFS - Filesystem Abstraction library | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum MateVFSResult; const char * mate_vfs_result_to_string (MateVFSResult result); MateVFSResult mate_vfs_result_from_errno_code (int errno_code); MateVFSResult mate_vfs_result_from_errno (void); MateVFSResult mate_vfs_result_from_h_errno (void); MateVFSResult mate_vfs_result_from_h_errno_val (int h_errno_code);
typedef enum {
MATE_VFS_OK,
MATE_VFS_ERROR_NOT_FOUND,
MATE_VFS_ERROR_GENERIC,
MATE_VFS_ERROR_INTERNAL,
MATE_VFS_ERROR_BAD_PARAMETERS,
MATE_VFS_ERROR_NOT_SUPPORTED,
MATE_VFS_ERROR_IO,
MATE_VFS_ERROR_CORRUPTED_DATA,
MATE_VFS_ERROR_WRONG_FORMAT,
MATE_VFS_ERROR_BAD_FILE,
MATE_VFS_ERROR_TOO_BIG,
MATE_VFS_ERROR_NO_SPACE,
MATE_VFS_ERROR_READ_ONLY,
MATE_VFS_ERROR_INVALID_URI,
MATE_VFS_ERROR_NOT_OPEN,
MATE_VFS_ERROR_INVALID_OPEN_MODE,
MATE_VFS_ERROR_ACCESS_DENIED,
MATE_VFS_ERROR_TOO_MANY_OPEN_FILES,
MATE_VFS_ERROR_EOF,
MATE_VFS_ERROR_NOT_A_DIRECTORY,
MATE_VFS_ERROR_IN_PROGRESS,
MATE_VFS_ERROR_INTERRUPTED,
MATE_VFS_ERROR_FILE_EXISTS,
MATE_VFS_ERROR_LOOP,
MATE_VFS_ERROR_NOT_PERMITTED,
MATE_VFS_ERROR_IS_DIRECTORY,
MATE_VFS_ERROR_NO_MEMORY,
MATE_VFS_ERROR_HOST_NOT_FOUND,
MATE_VFS_ERROR_INVALID_HOST_NAME,
MATE_VFS_ERROR_HOST_HAS_NO_ADDRESS,
MATE_VFS_ERROR_LOGIN_FAILED,
MATE_VFS_ERROR_CANCELLED,
MATE_VFS_ERROR_DIRECTORY_BUSY,
MATE_VFS_ERROR_DIRECTORY_NOT_EMPTY,
MATE_VFS_ERROR_TOO_MANY_LINKS,
MATE_VFS_ERROR_READ_ONLY_FILE_SYSTEM,
MATE_VFS_ERROR_NOT_SAME_FILE_SYSTEM,
MATE_VFS_ERROR_NAME_TOO_LONG,
MATE_VFS_ERROR_SERVICE_NOT_AVAILABLE,
MATE_VFS_ERROR_SERVICE_OBSOLETE,
MATE_VFS_ERROR_PROTOCOL_ERROR,
MATE_VFS_ERROR_NO_MASTER_BROWSER,
MATE_VFS_ERROR_NO_DEFAULT,
MATE_VFS_ERROR_NO_HANDLER,
MATE_VFS_ERROR_PARSE,
MATE_VFS_ERROR_LAUNCH,
MATE_VFS_ERROR_TIMEOUT,
MATE_VFS_ERROR_NAMESERVER,
MATE_VFS_ERROR_LOCKED,
MATE_VFS_ERROR_DEPRECATED_FUNCTION,
MATE_VFS_ERROR_INVALID_FILENAME,
MATE_VFS_ERROR_NOT_A_SYMBOLIC_LINK,
MATE_VFS_NUM_ERRORS
} MateVFSResult;
A MateVFSResult informs library clients about the result of a file operation. Unless it is MATE_VFS_OK, it denotes that a problem occurred and the operation could not be executed successfully.
mate_vfs_result_to_string() provides a textual representation of MateVFSResults.
| No error. | |
| File not found. | |
| Generic error. | |
| Internal error. | |
| Invalid parameters. | |
| Unsupported operation. | |
| I/O error. | |
| Data corrupted. | |
| Format not valid. | |
| Bad file handle. | |
| File too big. | |
| No space left on device. | |
| Read-only file system. | |
| Invalid URI. | |
| File not open. | |
| Open mode not valid. | |
| Access denied. | |
| Too many open files. | |
| End of file. | |
| Not a directory. | |
| Operation in progress. | |
| Operation interrupted. | |
| File exists. | |
| Looping links encountered. | |
| Operation not permitted. | |
| Is a directory. | |
| Not enough memory. | |
| Host not found. | |
| Host name not valid. | |
| Host has no address. | |
| Login failed. | |
| Operation cancelled. | |
| Directory busy. | |
| Directory not empty. | |
| Too many links. | |
| Read only file system. | |
| Not on the same file system. | |
| Name too long. | |
| Service not available. | |
| Request obsoletes service's data. | |
| Protocol error. | |
| Could not find master browser. | |
| No default action associated. | |
| No handler for URL scheme. | |
| Error parsing command line. | |
| Error launching command. | |
| Timeout reached. | |
| Nameserver error. | |
| The resource is locked. | |
| Function call deprecated. | |
| The specified filename is invalid. | |
| Not a symbolic link. | |
const char * mate_vfs_result_to_string (MateVFSResult result);
Returns a string representing result, useful for debugging
purposes, but probably not appropriate for passing to the user.
|
a MateVFSResult to convert to a string. |
Returns : |
a string representing result.
|
MateVFSResult mate_vfs_result_from_errno_code (int errno_code);
Converts a system errno value to a MateVFSResult.
|
integer of the same type as the system "errno". |
Returns : |
a MateVFSResult equivalent to errno_code.
|
MateVFSResult mate_vfs_result_from_errno (void);
Converts the system errno to a MateVFSResult.
Returns : |
a MateVFSResult equivalent to the current system errno. |
MateVFSResult mate_vfs_result_from_h_errno (void);
Converts the system "h_errno" to a MateVFSResult (h_errno represents errors accessing and finding internet hosts)
Returns : |
a MateVFSResult equivalent to the current system "h_errno". |
MateVFSResult mate_vfs_result_from_h_errno_val (int h_errno_code);
Converts the error code h_errno_code into a MateVFSResult.
|
an integer representing the same error code as the system h_errno. |
Returns : |
The MateVFSResult equivalent to the h_errno_code.
|