epoc32/include/stdapis/glib-2.0/glib/gerror.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/glib-2.0/glib/gerror.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/glib-2.0/glib/gerror.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,76 @@
     1.4 -gerror.h
     1.5 +/* gerror.h - Error reporting system
     1.6 + *
     1.7 + *  Copyright 2000 Red Hat, Inc.
     1.8 + * Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
     1.9 + *
    1.10 + * The Gnome Library is free software; you can redistribute it and/or
    1.11 + * modify it under the terms of the GNU Lesser General Public License as
    1.12 + * published by the Free Software Foundation; either version 2 of the
    1.13 + * License, or (at your option) any later version.
    1.14 + *
    1.15 + * The Gnome Library is distributed in the hope that it will be useful,
    1.16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.18 + * Lesser General Public License for more details.
    1.19 + *
    1.20 + * You should have received a copy of the GNU Lesser General Public
    1.21 + * License along with the Gnome Library; see the file COPYING.LIB.  If not,
    1.22 + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    1.23 + *   Boston, MA 02111-1307, USA.
    1.24 + */
    1.25 +
    1.26 +#ifndef __G_ERROR_H__
    1.27 +#define __G_ERROR_H__
    1.28 +
    1.29 +#include <_ansi.h>
    1.30 +#include <glib/gquark.h>
    1.31 +
    1.32 +G_BEGIN_DECLS
    1.33 +
    1.34 +typedef struct _GError GError;
    1.35 +
    1.36 +struct _GError
    1.37 +{
    1.38 +  GQuark       domain;
    1.39 +  gint         code;
    1.40 +  gchar       *message;
    1.41 +};
    1.42 +
    1.43 +IMPORT_C GError*  g_error_new           (GQuark         domain,
    1.44 +                                gint           code,
    1.45 +                                const gchar   *format,
    1.46 +                                ...) G_GNUC_PRINTF (3, 4);
    1.47 +
    1.48 +IMPORT_C GError*  g_error_new_literal   (GQuark         domain,
    1.49 +                                gint           code,
    1.50 +                                const gchar   *message);
    1.51 +
    1.52 +IMPORT_C void     g_error_free          (GError        *error);
    1.53 +IMPORT_C GError*  g_error_copy          (const GError  *error);
    1.54 +
    1.55 +IMPORT_C gboolean g_error_matches       (const GError  *error,
    1.56 +                                GQuark         domain,
    1.57 +                                gint           code);
    1.58 +
    1.59 +/* if (err) *err = g_error_new(domain, code, format, ...), also has
    1.60 + * some sanity checks.
    1.61 + */
    1.62 +IMPORT_C void     g_set_error           (GError       **err,
    1.63 +                                GQuark         domain,
    1.64 +                                gint           code,
    1.65 +                                const gchar   *format,
    1.66 +                                ...) G_GNUC_PRINTF (4, 5);
    1.67 +
    1.68 +/* if (dest) *dest = src; also has some sanity checks.
    1.69 + */
    1.70 +IMPORT_C void     g_propagate_error     (GError       **dest,
    1.71 +				GError        *src);
    1.72 +
    1.73 +/* if (err && *err) { g_error_free(*err); *err = NULL; } */
    1.74 +IMPORT_C void     g_clear_error         (GError       **err);
    1.75 +
    1.76 +
    1.77 +G_END_DECLS
    1.78 +
    1.79 +#endif /* __G_ERROR_H__ */
    1.80 +