2
* Copyright (C) 1999, 2000 Red Hat Inc.
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Library General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
20
#ifndef GCONF_GCONF_GLIB_PUBLIC_H
21
#define GCONF_GCONF_GLIB_PUBLIC_H
27
#endif /* __cplusplus */
29
typedef struct _GError GError;
38
GError* g_error_new (GQuark domain,
41
...) G_GNUC_PRINTF (3, 4);
43
GError* g_error_new_literal (GQuark domain,
45
const gchar *message);
47
void g_error_free (GError *error);
48
GError* g_error_copy (const GError *error);
50
gboolean g_error_matches (const GError *error,
54
/* if (err) *err = g_error_new(domain, code, format, ...), also has
57
void g_set_error (GError **err,
61
...) G_GNUC_PRINTF (4, 5);
63
/* if (err && *err) { g_error_free(*err); *err = NULL; } */
64
void g_clear_error (GError **err);
66
/* if (dest) *dest = src; also has some sanity checks.
68
void g_propagate_error (GError **dest,
74
#endif /* __cplusplus */