gimpconfig-error.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* LIBGIMP - The GIMP Library
  2. * Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
  3. *
  4. * Copyright (C) 2003 Sven Neumann <sven@gimp.org>
  5. *
  6. * This library is free software: you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * 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. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * 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. #if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
  21. #error "Only <libgimpconfig/gimpconfig.h> can be included directly."
  22. #endif
  23. #ifndef __GIMP_CONFIG_ERROR_H__
  24. #define __GIMP_CONFIG_ERROR_H__
  25. G_BEGIN_DECLS
  26. /* For information look into the C source or the html documentation */
  27. /**
  28. * GimpConfigError:
  29. * @GIMP_CONFIG_ERROR_OPEN: open failed
  30. * @GIMP_CONFIG_ERROR_OPEN_ENOENT: file does not exist
  31. * @GIMP_CONFIG_ERROR_WRITE: write failed
  32. * @GIMP_CONFIG_ERROR_PARSE: parser error
  33. * @GIMP_CONFIG_ERROR_VERSION: parser failed due to version mismatch
  34. *
  35. * The possible values of a #GError thrown by libgimpconfig.
  36. **/
  37. typedef enum
  38. {
  39. GIMP_CONFIG_ERROR_OPEN,
  40. GIMP_CONFIG_ERROR_OPEN_ENOENT,
  41. GIMP_CONFIG_ERROR_WRITE,
  42. GIMP_CONFIG_ERROR_PARSE,
  43. GIMP_CONFIG_ERROR_VERSION
  44. } GimpConfigError;
  45. #define GIMP_CONFIG_ERROR (gimp_config_error_quark ())
  46. GQuark gimp_config_error_quark (void) G_GNUC_CONST;
  47. G_END_DECLS
  48. #endif /* __GIMP_CONFIG_ERROR_H__ */