source: trunk/third/gnome-vfs/libgnomevfs/gnome-vfs-result.h @ 17128

Revision 17128, 2.9 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17127, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
3/* gnome-vfs-result.h - Result handling for the GNOME Virtual File System.
4
5   Copyright (C) 1999, 2001 Free Software Foundation
6
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.
11
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.
16
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.
21
22   Author: Ettore Perazzoli <ettore@comm2000.it>
23           Seth Nickell <snickell@stanford.edu>
24*/
25
26#ifndef GNOME_VFS_RESULT_H
27#define GNOME_VFS_RESULT_H
28
29#include <glib.h>
30
31/* IMPORTANT NOTICE: If you add error types here, please also add the
32   corresponsing descriptions in `gnome-vfs-result.c'.  Moreover, *always* add
33   new values at the end of the list, and *never* remove values.  */
34typedef enum {
35        GNOME_VFS_OK,
36        GNOME_VFS_ERROR_NOT_FOUND,
37        GNOME_VFS_ERROR_GENERIC,
38        GNOME_VFS_ERROR_INTERNAL,
39        GNOME_VFS_ERROR_BAD_PARAMETERS,
40        GNOME_VFS_ERROR_NOT_SUPPORTED,
41        GNOME_VFS_ERROR_IO,
42        GNOME_VFS_ERROR_CORRUPTED_DATA,
43        GNOME_VFS_ERROR_WRONG_FORMAT,
44        GNOME_VFS_ERROR_BAD_FILE,
45        GNOME_VFS_ERROR_TOO_BIG,
46        GNOME_VFS_ERROR_NO_SPACE,
47        GNOME_VFS_ERROR_READ_ONLY,
48        GNOME_VFS_ERROR_INVALID_URI,
49        GNOME_VFS_ERROR_NOT_OPEN,
50        GNOME_VFS_ERROR_INVALID_OPEN_MODE,
51        GNOME_VFS_ERROR_ACCESS_DENIED,
52        GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES,
53        GNOME_VFS_ERROR_EOF,
54        GNOME_VFS_ERROR_NOT_A_DIRECTORY,
55        GNOME_VFS_ERROR_IN_PROGRESS,
56        GNOME_VFS_ERROR_INTERRUPTED,
57        GNOME_VFS_ERROR_FILE_EXISTS,
58        GNOME_VFS_ERROR_LOOP,
59        GNOME_VFS_ERROR_NOT_PERMITTED,
60        GNOME_VFS_ERROR_IS_DIRECTORY,
61        GNOME_VFS_ERROR_NO_MEMORY,
62        GNOME_VFS_ERROR_HOST_NOT_FOUND,
63        GNOME_VFS_ERROR_INVALID_HOST_NAME,
64        GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS,
65        GNOME_VFS_ERROR_LOGIN_FAILED,
66        GNOME_VFS_ERROR_CANCELLED,
67        GNOME_VFS_ERROR_DIRECTORY_BUSY,
68        GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY,
69        GNOME_VFS_ERROR_TOO_MANY_LINKS,
70        GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM,
71        GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM,
72        GNOME_VFS_ERROR_NAME_TOO_LONG,
73        GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE,
74        GNOME_VFS_ERROR_SERVICE_OBSOLETE,
75        GNOME_VFS_ERROR_PROTOCOL_ERROR,
76        GNOME_VFS_NUM_ERRORS
77} GnomeVFSResult;
78
79const gchar     *gnome_vfs_result_to_string       (GnomeVFSResult result);
80GnomeVFSResult   gnome_vfs_result_from_errno_code (int errno_code);
81GnomeVFSResult   gnome_vfs_result_from_errno      (void);
82GnomeVFSResult   gnome_vfs_result_from_h_errno    (void);
83
84#endif /* GNOME_VFS_RESULT_H */
Note: See TracBrowser for help on using the repository browser.