00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __G_ERROR_H__
00022 #define __G_ERROR_H__
00023
00024 #include <gquark.h>
00025
00026 G_BEGIN_DECLS
00027
00028 typedef struct _GError GError;
00029
00030 struct _GError
00031 {
00032 GQuark domain;
00033 gint code;
00034 gchar *message;
00035 };
00036
00037 GError* g_error_new (GQuark domain,
00038 gint code,
00039 const gchar *format,
00040 ...) G_GNUC_PRINTF (3, 4);
00041
00042 GError* g_error_new_literal (GQuark domain,
00043 gint code,
00044 const gchar *message);
00045
00046 void g_error_free (GError *error);
00047 GError* g_error_copy (const GError *error);
00048
00049 gboolean g_error_matches (const GError *error,
00050 GQuark domain,
00051 gint code);
00052
00053
00054
00055
00056 void g_set_error (GError **err,
00057 GQuark domain,
00058 gint code,
00059 const gchar *format,
00060 ...) G_GNUC_PRINTF (4, 5);
00061
00062
00063
00064 void g_propagate_error (GError **dest,
00065 GError *src);
00066
00067
00068 void g_clear_error (GError **err);
00069
00070
00071 G_END_DECLS
00072
00073 #endif
00074