gimpconfig-serialize.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* LIBGIMP - The GIMP Library
  2. * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3. *
  4. * Object properties serialization routines
  5. * Copyright (C) 2001-2002 Sven Neumann <sven@gimp.org>
  6. *
  7. * This library is free software: you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 3 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Library General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this library. If not, see
  19. * <https://www.gnu.org/licenses/>.
  20. */
  21. #if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
  22. #error "Only <libgimpconfig/gimpconfig.h> can be included directly."
  23. #endif
  24. #ifndef __GIMP_CONFIG_SERIALIZE_H__
  25. #define __GIMP_CONFIG_SERIALIZE_H__
  26. G_BEGIN_DECLS
  27. /* For information look into the C source or the html documentation */
  28. gboolean gimp_config_serialize_properties (GimpConfig *config,
  29. GimpConfigWriter *writer);
  30. gboolean gimp_config_serialize_changed_properties (GimpConfig *config,
  31. GimpConfigWriter *writer);
  32. gboolean gimp_config_serialize_property (GimpConfig *config,
  33. GParamSpec *param_spec,
  34. GimpConfigWriter *writer);
  35. gboolean gimp_config_serialize_property_by_name (GimpConfig *config,
  36. const gchar *prop_name,
  37. GimpConfigWriter *writer);
  38. gboolean gimp_config_serialize_value (const GValue *value,
  39. GString *str,
  40. gboolean escaped);
  41. G_END_DECLS
  42. #endif /* __GIMP_CONFIG_SERIALIZE_H__ */