Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 /* gerror.h - Error reporting system
3 * Copyright 2000 Red Hat, Inc.
4 * Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
6 * The Gnome Library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * The Gnome Library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with the Gnome Library; see the file COPYING.LIB. If not,
18 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
26 #include <glib/gquark.h>
30 typedef struct _GError GError;
39 IMPORT_C GError* g_error_new (GQuark domain,
42 ...) G_GNUC_PRINTF (3, 4);
44 IMPORT_C GError* g_error_new_literal (GQuark domain,
46 const gchar *message);
48 IMPORT_C void g_error_free (GError *error);
49 IMPORT_C GError* g_error_copy (const GError *error);
51 IMPORT_C gboolean g_error_matches (const GError *error,
55 /* if (err) *err = g_error_new(domain, code, format, ...), also has
58 IMPORT_C void g_set_error (GError **err,
62 ...) G_GNUC_PRINTF (4, 5);
64 /* if (dest) *dest = src; also has some sanity checks.
66 IMPORT_C void g_propagate_error (GError **dest,
69 /* if (err && *err) { g_error_free(*err); *err = NULL; } */
70 IMPORT_C void g_clear_error (GError **err);
75 #endif /* __G_ERROR_H__ */