gimpconfig-error.h 1.8 KB
Newer Older
1
/* LIBGIMP - The GIMP Library
2 3 4 5
 * Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
 *
 * Copyright (C) 2003  Sven Neumann <sven@gimp.org>
 *
6
 * This library is free software: you can redistribute it and/or
7 8
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
9
 * version 3 of the License, or (at your option) any later version.
10
 *
11
 * This library is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Lesser General Public
17
 * License along with this library.  If not, see
18
 * <https://www.gnu.org/licenses/>.
19 20
 */

21 22 23 24
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
#endif

25 26 27
#ifndef __GIMP_CONFIG_ERROR_H__
#define __GIMP_CONFIG_ERROR_H__

28 29 30 31
G_BEGIN_DECLS

/* For information look into the C source or the html documentation */

32

33 34 35 36 37 38 39 40 41 42
/**
 * GimpConfigError:
 * @GIMP_CONFIG_ERROR_OPEN:        open failed
 * @GIMP_CONFIG_ERROR_OPEN_ENOENT: file does not exist
 * @GIMP_CONFIG_ERROR_WRITE:       write failed
 * @GIMP_CONFIG_ERROR_PARSE:       parser error
 * @GIMP_CONFIG_ERROR_VERSION:     parser failed due to version mismatch
 *
 * The possible values of a #GError thrown by libgimpconfig.
 **/
43 44
typedef enum
{
45 46 47 48 49
  GIMP_CONFIG_ERROR_OPEN,
  GIMP_CONFIG_ERROR_OPEN_ENOENT,
  GIMP_CONFIG_ERROR_WRITE,
  GIMP_CONFIG_ERROR_PARSE,
  GIMP_CONFIG_ERROR_VERSION
50 51 52 53 54 55 56
} GimpConfigError;

#define GIMP_CONFIG_ERROR (gimp_config_error_quark ())

GQuark        gimp_config_error_quark   (void) G_GNUC_CONST;


57 58
G_END_DECLS

59
#endif  /* __GIMP_CONFIG_ERROR_H__ */