1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* gnome-vfs-result.h - Result handling for the GNOME Virtual File System.
5 Copyright (C) 1999, 2001 Free Software Foundation
7 The Gnome Library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
12 The Gnome Library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public
18 License along with the Gnome Library; see the file COPYING.LIB. If not,
19 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Author: Ettore Perazzoli <ettore@comm2000.it>
23 Seth Nickell <snickell@stanford.edu>
26 #ifndef GNOME_VFS_RESULT_H
27 #define GNOME_VFS_RESULT_H
29 #include <glib/gmacros.h>
33 /* IMPORTANT NOTICE: If you add error types here, please also add the
34 corresponding descriptions in `gnome-vfs-result.c'. Moreover, *always* add
35 new values at the end of the list, and *never* remove values. */
38 GNOME_VFS_ERROR_NOT_FOUND,
39 GNOME_VFS_ERROR_GENERIC,
40 GNOME_VFS_ERROR_INTERNAL,
41 GNOME_VFS_ERROR_BAD_PARAMETERS,
42 GNOME_VFS_ERROR_NOT_SUPPORTED,
44 GNOME_VFS_ERROR_CORRUPTED_DATA,
45 GNOME_VFS_ERROR_WRONG_FORMAT,
46 GNOME_VFS_ERROR_BAD_FILE,
47 GNOME_VFS_ERROR_TOO_BIG,
48 GNOME_VFS_ERROR_NO_SPACE,
49 GNOME_VFS_ERROR_READ_ONLY,
50 GNOME_VFS_ERROR_INVALID_URI,
51 GNOME_VFS_ERROR_NOT_OPEN,
52 GNOME_VFS_ERROR_INVALID_OPEN_MODE,
53 GNOME_VFS_ERROR_ACCESS_DENIED,
54 GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES,
56 GNOME_VFS_ERROR_NOT_A_DIRECTORY,
57 GNOME_VFS_ERROR_IN_PROGRESS,
58 GNOME_VFS_ERROR_INTERRUPTED,
59 GNOME_VFS_ERROR_FILE_EXISTS,
61 GNOME_VFS_ERROR_NOT_PERMITTED,
62 GNOME_VFS_ERROR_IS_DIRECTORY,
63 GNOME_VFS_ERROR_NO_MEMORY,
64 GNOME_VFS_ERROR_HOST_NOT_FOUND,
65 GNOME_VFS_ERROR_INVALID_HOST_NAME,
66 GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS,
67 GNOME_VFS_ERROR_LOGIN_FAILED,
68 GNOME_VFS_ERROR_CANCELLED,
69 GNOME_VFS_ERROR_DIRECTORY_BUSY,
70 GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY,
71 GNOME_VFS_ERROR_TOO_MANY_LINKS,
72 GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM,
73 GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM,
74 GNOME_VFS_ERROR_NAME_TOO_LONG,
75 GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE,
76 GNOME_VFS_ERROR_SERVICE_OBSOLETE,
77 GNOME_VFS_ERROR_PROTOCOL_ERROR,
78 GNOME_VFS_ERROR_NO_MASTER_BROWSER,
79 GNOME_VFS_ERROR_NO_DEFAULT,
80 GNOME_VFS_ERROR_NO_HANDLER,
81 GNOME_VFS_ERROR_PARSE,
82 GNOME_VFS_ERROR_LAUNCH,
86 const char *gnome_vfs_result_to_string (GnomeVFSResult result);
87 GnomeVFSResult gnome_vfs_result_from_errno_code (int errno_code);
88 GnomeVFSResult gnome_vfs_result_from_errno (void);
89 GnomeVFSResult gnome_vfs_result_from_h_errno (void);
93 #endif /* GNOME_VFS_RESULT_H */