Commit daf206c7 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

app: make struct GimpLayerModeInfo private

parent 2950fecf
......@@ -28,6 +28,19 @@
#include "gimp-layer-modes.h"
typedef struct _GimpLayerModeInfo GimpLayerModeInfo;
struct _GimpLayerModeInfo
{
GimpLayerMode layer_mode;
gchar *op_name;
GimpLayerModeFlags flags;
GimpLayerCompositeMode composite_mode;
GimpLayerColorSpace composite_space;
GimpLayerColorSpace blend_space;
};
/* static variables */
static GimpLayerModeInfo layer_mode_infos[]=
......@@ -1014,7 +1027,7 @@ gimp_layer_modes_init (void)
}
}
const GimpLayerModeInfo *
static const GimpLayerModeInfo *
gimp_layer_mode_info (GimpLayerMode mode)
{
g_return_val_if_fail (mode < G_N_ELEMENTS (layer_mode_infos),
......
......@@ -23,23 +23,8 @@
#define __GIMP_LAYER_MODES_H__
typedef struct _GimpLayerModeInfo GimpLayerModeInfo;
struct _GimpLayerModeInfo
{
GimpLayerMode layer_mode;
gchar *op_name;
GimpLayerModeFlags flags;
GimpLayerCompositeMode composite_mode;
GimpLayerColorSpace composite_space;
GimpLayerColorSpace blend_space;
};
void gimp_layer_modes_init (void);
const GimpLayerModeInfo *gimp_layer_mode_info (GimpLayerMode mode);
gboolean gimp_layer_mode_is_legacy (GimpLayerMode mode);
gboolean gimp_layer_mode_wants_linear_data (GimpLayerMode mode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment