1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright (C) 2006-2007 Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: Alexander Larsson <alexl@redhat.com>
23 #ifndef __G_IO_ERROR_H__
24 #define __G_IO_ERROR_H__
26 #include <glib/gerror.h>
30 GQuark g_io_error_quark (void);
32 #define G_IO_ERROR g_io_error_quark()
34 /* This enumeration conflicts with GIOError in giochannel.h. However,
35 * that is only used as a return value in some deprecated functions.
36 * So, we reuse the same prefix for the enumeration values, but call
37 * the actual enumeration (which is rarely used) GIOErrorEnum.
45 G_IO_ERROR_IS_DIRECTORY,
46 G_IO_ERROR_NOT_DIRECTORY,
48 G_IO_ERROR_NOT_REGULAR_FILE,
49 G_IO_ERROR_NOT_SYMBOLIC_LINK,
50 G_IO_ERROR_NOT_MOUNTABLE_FILE,
51 G_IO_ERROR_FILENAME_TOO_LONG,
52 G_IO_ERROR_INVALID_FILENAME,
53 G_IO_ERROR_TOO_MANY_LINKS,
55 G_IO_ERROR_INVALID_ARGUMENT,
56 G_IO_ERROR_PERMISSION_DENIED,
57 G_IO_ERROR_NOT_SUPPORTED,
58 G_IO_ERROR_NOT_MOUNTED,
59 G_IO_ERROR_ALREADY_MOUNTED,
64 G_IO_ERROR_CANT_CREATE_BACKUP,
65 G_IO_ERROR_WRONG_ETAG,
67 G_IO_ERROR_WOULD_RECURSE,
69 G_IO_ERROR_WOULD_BLOCK,
70 G_IO_ERROR_HOST_NOT_FOUND,
71 G_IO_ERROR_WOULD_MERGE
74 GIOErrorEnum g_io_error_from_errno (gint err_no);
78 #endif /* __G_IO_ERROR_H__ */