Revert "libgimpconfig: #pragma once, and some formatting"
This reverts commit 47a8ab5a66.
See https://gitlab.gnome.org/GNOME/gimp/-/issues/14668
This commit is contained in:
parent
946a362d9b
commit
9308de3137
14 changed files with 80 additions and 36 deletions
|
|
@ -19,18 +19,16 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_COLOR_CONFIG_H__
|
||||||
|
#define __GIMP_COLOR_CONFIG_H__
|
||||||
|
|
||||||
|
|
||||||
#define GIMP_TYPE_COLOR_CONFIG (gimp_color_config_get_type ())
|
#define GIMP_TYPE_COLOR_CONFIG (gimp_color_config_get_type ())
|
||||||
G_DECLARE_FINAL_TYPE (GimpColorConfig,
|
G_DECLARE_FINAL_TYPE (GimpColorConfig, gimp_color_config, GIMP, COLOR_CONFIG, GObject)
|
||||||
gimp_color_config,
|
|
||||||
GIMP, COLOR_CONFIG,
|
|
||||||
GObject)
|
|
||||||
|
|
||||||
|
|
||||||
GimpColorManagementMode
|
GimpColorManagementMode
|
||||||
|
|
@ -60,3 +58,5 @@ GimpColorProfile * gimp_color_config_get_display_color_profile (GimpColorConf
|
||||||
GimpColorProfile * gimp_color_config_get_simulation_color_profile (GimpColorConfig *config,
|
GimpColorProfile * gimp_color_config_get_simulation_color_profile (GimpColorConfig *config,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* GIMP_COLOR_CONFIG_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_DESERIALIZE_H__
|
||||||
|
#define __GIMP_CONFIG_DESERIALIZE_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
@ -37,4 +38,7 @@ GTokenType gimp_config_deserialize_property (GimpConfig *config,
|
||||||
GScanner *scanner,
|
GScanner *scanner,
|
||||||
gint nest_level);
|
gint nest_level);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_DESERIALIZE_H__ */
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_ERROR_H__
|
||||||
|
#define __GIMP_CONFIG_ERROR_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
@ -50,7 +51,9 @@ typedef enum
|
||||||
|
|
||||||
#define GIMP_CONFIG_ERROR (gimp_config_error_quark ())
|
#define GIMP_CONFIG_ERROR (gimp_config_error_quark ())
|
||||||
|
|
||||||
GQuark gimp_config_error_quark (void) G_GNUC_CONST;
|
GQuark gimp_config_error_quark (void) G_GNUC_CONST;
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_ERROR_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,23 +19,19 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_IFACE_H__
|
||||||
|
#define __GIMP_CONFIG_IFACE_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
||||||
|
|
||||||
#define GIMP_TYPE_CONFIG (gimp_config_get_type ())
|
#define GIMP_TYPE_CONFIG (gimp_config_get_type ())
|
||||||
G_DECLARE_INTERFACE (GimpConfig,
|
G_DECLARE_INTERFACE (GimpConfig, gimp_config, GIMP, CONFIG, GObject)
|
||||||
gimp_config,
|
|
||||||
GIMP, CONFIG,
|
|
||||||
GObject)
|
|
||||||
|
|
||||||
|
|
||||||
struct _GimpConfigInterface
|
struct _GimpConfigInterface
|
||||||
{
|
{
|
||||||
|
|
@ -133,4 +129,7 @@ gboolean gimp_config_copy (GimpConfig *src,
|
||||||
GimpConfig *dest,
|
GimpConfig *dest,
|
||||||
GParamFlags flags);
|
GParamFlags flags);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_IFACE_H__ */
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_PARAMS_H__
|
||||||
|
#define __GIMP_CONFIG_PARAMS_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
@ -227,4 +228,7 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
GParamSpec * gimp_config_param_spec_duplicate (GParamSpec *pspec);
|
GParamSpec * gimp_config_param_spec_duplicate (GParamSpec *pspec);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_PARAMS_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_PATH_H__
|
||||||
|
#define __GIMP_CONFIG_PATH_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
@ -102,5 +103,7 @@ gchar * gimp_config_build_writable_path (const gchar *name) G_GNUC
|
||||||
gchar * gimp_config_build_plug_in_path (const gchar *name) G_GNUC_MALLOC;
|
gchar * gimp_config_build_plug_in_path (const gchar *name) G_GNUC_MALLOC;
|
||||||
gchar * gimp_config_build_system_path (const gchar *name) G_GNUC_MALLOC;
|
gchar * gimp_config_build_system_path (const gchar *name) G_GNUC_MALLOC;
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_PATH_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_REGISTER_H__
|
||||||
|
#define __GIMP_CONFIG_REGISTER_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
@ -35,4 +36,7 @@ GType gimp_config_type_register (GType parent_type,
|
||||||
GParamSpec **pspecs,
|
GParamSpec **pspecs,
|
||||||
gint n_pspecs);
|
gint n_pspecs);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_REGISTER_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_SERIALIZE_H__
|
||||||
|
#define __GIMP_CONFIG_SERIALIZE_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
@ -45,5 +46,7 @@ gboolean gimp_config_serialize_value (const GValue *value,
|
||||||
GString *str,
|
GString *str,
|
||||||
gboolean escaped);
|
gboolean escaped);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_SERIALIZE_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_UTILS_H__
|
||||||
|
#define __GIMP_CONFIG_UTILS_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For information look into the C source or the html documentation */
|
/* For information look into the C source or the html documentation */
|
||||||
|
|
@ -45,4 +46,7 @@ void gimp_config_reset_property (GObject *object,
|
||||||
void gimp_config_string_append_escaped (GString *string,
|
void gimp_config_string_append_escaped (GString *string,
|
||||||
const gchar *val);
|
const gchar *val);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_UTILS_H__ */
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,8 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#ifndef __GIMP_CONFIG_H__
|
||||||
|
#define __GIMP_CONFIG_H__
|
||||||
|
|
||||||
#include <gegl.h>
|
#include <gegl.h>
|
||||||
|
|
||||||
|
|
@ -40,3 +41,5 @@
|
||||||
#include <libgimpconfig/gimpcolorconfig.h>
|
#include <libgimpconfig/gimpcolorconfig.h>
|
||||||
|
|
||||||
#undef __GIMP_CONFIG_H_INSIDE__
|
#undef __GIMP_CONFIG_H_INSIDE__
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,8 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#ifndef __GIMP_CONFIG_ENUMS_H__
|
||||||
|
#define __GIMP_CONFIG_ENUMS_H__
|
||||||
|
|
||||||
|
|
||||||
#define GIMP_TYPE_COLOR_MANAGEMENT_MODE (gimp_color_management_mode_get_type ())
|
#define GIMP_TYPE_COLOR_MANAGEMENT_MODE (gimp_color_management_mode_get_type ())
|
||||||
|
|
@ -62,3 +63,6 @@ typedef enum
|
||||||
GIMP_COLOR_RENDERING_INTENT_SATURATION, /*< desc="Saturation" >*/
|
GIMP_COLOR_RENDERING_INTENT_SATURATION, /*< desc="Saturation" >*/
|
||||||
GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC /*< desc="Absolute colorimetric" >*/
|
GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC /*< desc="Absolute colorimetric" >*/
|
||||||
} GimpColorRenderingIntent;
|
} GimpColorRenderingIntent;
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_ENUMS_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,9 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#ifndef __GIMP_CONFIG_TYPES_H__
|
||||||
|
#define __GIMP_CONFIG_TYPES_H__
|
||||||
|
|
||||||
|
|
||||||
#include <libgimpbase/gimpbasetypes.h>
|
#include <libgimpbase/gimpbasetypes.h>
|
||||||
|
|
||||||
|
|
@ -32,3 +34,6 @@ typedef struct _GScanner GimpScanner;
|
||||||
typedef struct _GimpColorConfig GimpColorConfig;
|
typedef struct _GimpColorConfig GimpColorConfig;
|
||||||
|
|
||||||
#include <libgimpconfig/gimpconfigenums.h>
|
#include <libgimpconfig/gimpconfigenums.h>
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_TYPES_H__ */
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_CONFIG_WRITER_H__
|
||||||
|
#define __GIMP_CONFIG_WRITER_H__
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GIMP_TYPE_CONFIG_WRITER:
|
* GIMP_TYPE_CONFIG_WRITER:
|
||||||
|
|
@ -80,3 +81,6 @@ void gimp_config_writer_close (GimpConfigWriter *writer);
|
||||||
gboolean gimp_config_writer_finish (GimpConfigWriter *writer,
|
gboolean gimp_config_writer_finish (GimpConfigWriter *writer,
|
||||||
const gchar *footer,
|
const gchar *footer,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* __GIMP_CONFIG_WRITER_H__ */
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,13 @@
|
||||||
* <https://www.gnu.org/licenses/>.
|
* <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
||||||
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __GIMP_SCANNER_H__
|
||||||
|
#define __GIMP_SCANNER_H__
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GIMP_TYPE_SCANNER:
|
* GIMP_TYPE_SCANNER:
|
||||||
|
|
@ -74,3 +75,6 @@ gboolean gimp_scanner_parse_color (GimpScanner *scanner,
|
||||||
GeglColor **color);
|
GeglColor **color);
|
||||||
gboolean gimp_scanner_parse_matrix2 (GimpScanner *scanner,
|
gboolean gimp_scanner_parse_matrix2 (GimpScanner *scanner,
|
||||||
GimpMatrix2 *dest);
|
GimpMatrix2 *dest);
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* __GIMP_SCANNER_H__ */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue