Commit 6be23f70 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

Sven Neumann <sven@gimp.org>

2000-06-01  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann  <sven@gimp.org>

	Completed the new file structure. Yet only few of the _pdb.[ch]
	files are based upon generated code and nothing is really
	autogenerated...

	* app/Makefile.am
	* app/gdisplay_cmds.c      -> app/display_cmds.c
	* app/gimage_cmds.c        -> app/image_cmds.c
	* app/gimage_mask_cmds.c   -> app/selection_cmds.c
	* app/internal_procs.c: related change

	* libgimp/Makefile.am
	* libgimp/gimp.h
	* libgimp/gimp_pdb.h
	* libgimp/gimpdisplay_pdb.[ch]
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpselection_pdb.[ch]: replaced with code based on files
	generated using pdbgen

	* libgimp/gimpchannelops_pdb.[ch]
	* libgimp/gimpcolor_pdb.[ch]
	* libgimp/gimpedit_pdb.[ch]
	* libgimp/gimpfloatingsel_pdb.[ch]
	* libgimp/gimpgimprc_pdb.[ch]
	* libgimp/gimptexttool_pdb.[ch]
	* libgimp/gimptools_pdb.[ch]
	* libgimp/gimpundo_pdb.[ch]: new files based on generated code

	* libgimp/gimpgradientselect.[ch]
	* libgimp/gimpimage.[ch]
	* libgimp/gimpselection.[ch]: new files wrapping around the
	autogenerated PDB wrappers as found in *_pdb.[ch]. This is necessary
	since the number of parameters or their order is different from the
	PDP calls.

	* plug-ins/common/CEL.c: plugged memleak

	* plug-ins/common/aa.c: removed compiler warning

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/groups.pl
	* tools/pdbgen/pdb/gdisplay.pdb     -> display.pdb
	* tools/pdbgen/pdb/gimage.pdb       -> image.pdb
	* tools/pdbgen/pdb/gimage_mask.pdb  -> selection.pdb

	* tools/pdbgen/pdb/channel_ops.pdb
	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/floating_sel.pdb
	* tools/pdbgen/pdb/gimprc.pdb
	* tools/pdbgen/pdb/text_tool.pdb
	* tools/pdbgen/pdb/tools.pdb
	* tools/pdbgen/pdb/undo.pdb: made them create libgimp code
parent 21651c25
2000-06-01 Michael Natterer <mitch@gimp.org>
Sven Neumann <sven@gimp.org>
Completed the new file structure. Yet only few of the _pdb.[ch]
files are based upon generated code and nothing is really
autogenerated...
* app/Makefile.am
* app/gdisplay_cmds.c -> app/display_cmds.c
* app/gimage_cmds.c -> app/image_cmds.c
* app/gimage_mask_cmds.c -> app/selection_cmds.c
* app/internal_procs.c: related change
* libgimp/Makefile.am
* libgimp/gimp.h
* libgimp/gimp_pdb.h
* libgimp/gimpdisplay_pdb.[ch]
* libgimp/gimpimage_pdb.[ch]
* libgimp/gimpselection_pdb.[ch]: replaced with code based on files
generated using pdbgen
* libgimp/gimpchannelops_pdb.[ch]
* libgimp/gimpcolor_pdb.[ch]
* libgimp/gimpedit_pdb.[ch]
* libgimp/gimpfloatingsel_pdb.[ch]
* libgimp/gimpgimprc_pdb.[ch]
* libgimp/gimptexttool_pdb.[ch]
* libgimp/gimptools_pdb.[ch]
* libgimp/gimpundo_pdb.[ch]: new files based on generated code
* libgimp/gimpgradientselect.[ch]
* libgimp/gimpimage.[ch]
* libgimp/gimpselection.[ch]: new files wrapping around the
autogenerated PDB wrappers as found in *_pdb.[ch]. This is necessary
since the number of parameters or their order is different from the
PDP calls.
* plug-ins/common/CEL.c: plugged memleak
* plug-ins/common/aa.c: removed compiler warning
* tools/pdbgen/Makefile.am
* tools/pdbgen/groups.pl
* tools/pdbgen/pdb/gdisplay.pdb -> display.pdb
* tools/pdbgen/pdb/gimage.pdb -> image.pdb
* tools/pdbgen/pdb/gimage_mask.pdb -> selection.pdb
* tools/pdbgen/pdb/channel_ops.pdb
* tools/pdbgen/pdb/color.pdb
* tools/pdbgen/pdb/edit.pdb
* tools/pdbgen/pdb/floating_sel.pdb
* tools/pdbgen/pdb/gimprc.pdb
* tools/pdbgen/pdb/text_tool.pdb
* tools/pdbgen/pdb/tools.pdb
* tools/pdbgen/pdb/undo.pdb: made them create libgimp code
2000-05-31 Michael Natterer <mitch@gimp.org>
Sven Neumann <sven@gimp.org>
......
......@@ -121,6 +121,7 @@ gimp_SOURCES = \
dialog_handler.h \
disp_callbacks.c \
disp_callbacks.h \
display_cmds.c \
docindex.c \
docindex.h \
dodgeburn.c \
......@@ -168,17 +169,14 @@ gimp_SOURCES = \
gdisplay_color.h \
gdisplay_color_ui.c \
gdisplay_color_ui.h \
gdisplay_cmds.c \
gdisplay_ops.c \
gdisplay_ops.h \
general.c \
general.h \
gimage.c \
gimage.h \
gimage_cmds.c \
gimage_mask.c \
gimage_mask.h \
gimage_mask_cmds.c \
gimpbrush.c \
gimpbrush.h \
gimpbrushgenerated.c \
......@@ -246,6 +244,7 @@ gimp_SOURCES = \
histogram_tool.h \
hue_saturation.c \
hue_saturation.h \
image_cmds.c \
image_map.c \
image_map.h \
image_new.c \
......@@ -380,6 +379,7 @@ gimp_SOURCES = \
scroll.h \
selection.c \
selection.h \
selection_cmds.c \
selection_options.h \
session.h \
session.c \
......
......@@ -27,7 +27,7 @@ static ProcRecord display_delete_proc;
static ProcRecord displays_flush_proc;
void
register_gdisplay_procs (void)
register_display_procs (void)
{
procedural_db_register (&display_new_proc);
procedural_db_register (&display_delete_proc);
......
......@@ -99,7 +99,7 @@ static ProcRecord image_get_layer_by_tattoo_proc;
static ProcRecord image_get_channel_by_tattoo_proc;
void
register_gimage_procs (void)
register_image_procs (void)
{
procedural_db_register (&image_list_proc);
procedural_db_register (&image_new_proc);
......
......@@ -33,18 +33,17 @@ void register_channel_procs (void);
void register_channel_ops_procs (void);
void register_color_procs (void);
void register_convert_procs (void);
void register_display_procs (void);
void register_drawable_procs (void);
void register_edit_procs (void);
void register_fileops_procs (void);
void register_floating_sel_procs (void);
void register_gdisplay_procs (void);
void register_gimage_procs (void);
void register_gimage_mask_procs (void);
void register_gimprc_procs (void);
void register_gradient_procs (void);
void register_gradient_select_procs (void);
void register_guides_procs (void);
void register_help_procs (void);
void register_image_procs (void);
void register_layer_procs (void);
void register_message_procs (void);
void register_misc_procs (void);
......@@ -55,6 +54,7 @@ void register_pattern_select_procs (void);
void register_patterns_procs (void);
void register_plug_in_procs (void);
void register_procedural_db_procs (void);
void register_selection_procs (void);
void register_text_tool_procs (void);
void register_tools_procs (void);
void register_undo_procs (void);
......@@ -83,72 +83,72 @@ internal_procs_init (void)
app_init_update_status (NULL, _("Convert"), 0.134);
register_convert_procs ();
app_init_update_status (NULL, _("Drawable procedures"), 0.143);
app_init_update_status (NULL, _("GDisplay procedures"), 0.143);
register_display_procs ();
app_init_update_status (NULL, _("Drawable procedures"), 0.152);
register_drawable_procs ();
app_init_update_status (NULL, _("Edit procedures"), 0.211);
app_init_update_status (NULL, _("Edit procedures"), 0.22);
register_edit_procs ();
app_init_update_status (NULL, _("File Operations"), 0.23);
app_init_update_status (NULL, _("File Operations"), 0.239);
register_fileops_procs ();
app_init_update_status (NULL, _("Floating selections"), 0.255);
app_init_update_status (NULL, _("Floating selections"), 0.264);
register_floating_sel_procs ();
app_init_update_status (NULL, _("GDisplay procedures"), 0.273);
register_gdisplay_procs ();
app_init_update_status (NULL, _("Image"), 0.283);
register_gimage_procs ();
app_init_update_status (NULL, _("Image mask"), 0.466);
register_gimage_mask_procs ();
app_init_update_status (NULL, _("Gimprc procedures"), 0.519);
app_init_update_status (NULL, _("Gimprc procedures"), 0.283);
register_gimprc_procs ();
app_init_update_status (NULL, _("Gradients"), 0.528);
app_init_update_status (NULL, _("Gradients"), 0.292);
register_gradient_procs ();
app_init_update_status (NULL, _("Gradient UI"), 0.543);
app_init_update_status (NULL, _("Gradient UI"), 0.307);
register_gradient_select_procs ();
app_init_update_status (NULL, _("Guide procedures"), 0.556);
app_init_update_status (NULL, _("Guide procedures"), 0.32);
register_guides_procs ();
app_init_update_status (NULL, _("Help procedures"), 0.575);
app_init_update_status (NULL, _("Help procedures"), 0.339);
register_help_procs ();
app_init_update_status (NULL, _("Layer"), 0.578);
app_init_update_status (NULL, _("Image"), 0.342);
register_image_procs ();
app_init_update_status (NULL, _("Layer"), 0.525);
register_layer_procs ();
app_init_update_status (NULL, _("Interface"), 0.674);
app_init_update_status (NULL, _("Interface"), 0.621);
register_message_procs ();
app_init_update_status (NULL, _("Miscellaneous"), 0.683);
app_init_update_status (NULL, _("Miscellaneous"), 0.63);
register_misc_procs ();
app_init_update_status (NULL, _("Palette"), 0.689);
app_init_update_status (NULL, _("Palette"), 0.637);
register_palette_procs ();
app_init_update_status (NULL, _("Parasite procedures"), 0.711);
app_init_update_status (NULL, _("Parasite procedures"), 0.658);
register_parasite_procs ();
app_init_update_status (NULL, _("Paths"), 0.748);
app_init_update_status (NULL, _("Paths"), 0.696);
register_paths_procs ();
app_init_update_status (NULL, _("Pattern UI"), 0.789);
app_init_update_status (NULL, _("Pattern UI"), 0.736);
register_pattern_select_procs ();
app_init_update_status (NULL, _("Patterns"), 0.798);
app_init_update_status (NULL, _("Patterns"), 0.745);
register_patterns_procs ();
app_init_update_status (NULL, _("Plug-in"), 0.811);
app_init_update_status (NULL, _("Plug-in"), 0.758);
register_plug_in_procs ();
app_init_update_status (NULL, _("Procedural database"), 0.829);
app_init_update_status (NULL, _("Procedural database"), 0.776);
register_procedural_db_procs ();
app_init_update_status (NULL, _("Image mask"), 0.801);
register_selection_procs ();
app_init_update_status (NULL, _("Text procedures"), 0.854);
register_text_tool_procs ();
......
......@@ -44,7 +44,7 @@ static ProcRecord selection_load_proc;
static ProcRecord selection_save_proc;
void
register_gimage_mask_procs (void)
register_selection_procs (void)
{
procedural_db_register (&selection_bounds_proc);
procedural_db_register (&selection_value_proc);
......
......@@ -24,6 +24,71 @@ EXTRA_DIST = \
lib_LTLIBRARIES = libgimp.la libgimpui.la
noinst_LIBRARIES = libgimpi.a
PDB_WRAPPERS_C = \
gimpbrushes_pdb.c \
gimpbrushselect_pdb.c \
gimpchannel_pdb.c \
gimpchannelops_pdb.c \
gimpcolor_pdb.c \
gimpconvert_pdb.c \
gimpdisplay_pdb.c \
gimpdrawable_pdb.c \
gimpedit_pdb.c \
gimpfileops_pdb.c \
gimpfloatingsel_pdb.c \
gimpgimprc_pdb.c \
gimpgradient_pdb.c \
gimpgradientselect_pdb.c \
gimpguides_pdb.c \
gimphelp_pdb.c \
gimpimage_pdb.c \
gimplayer_pdb.c \
gimpmessage_pdb.c \
gimppalette_pdb.c \
gimpparasite_pdb.c \
gimppatterns_pdb.c \
gimppatternselect_pdb.c \
gimpplugin_pdb.c \
gimpproceduraldb_pdb.c \
gimpselection_pdb.c \
gimptexttool_pdb.c \
gimptools_pdb.c \
gimpundo_pdb.c \
gimpunit_pdb.c
PDB_WRAPPERS_H = \
gimp_pdb.h \
gimpbrushes_pdb.h \
gimpbrushselect_pdb.h \
gimpchannel_pdb.h \
gimpchannelops_pdb.h \
gimpcolor_pdb.h \
gimpconvert_pdb.h \
gimpdisplay_pdb.h \
gimpdrawable_pdb.h \
gimpedit_pdb.h \
gimpfileops_pdb.h \
gimpfloatingsel_pdb.h \
gimpgimprc_pdb.h \
gimpgradient_pdb.h \
gimpgradientselect_pdb.h \
gimpguides_pdb.h \
gimphelp_pdb.h \
gimpimage_pdb.h \
gimplayer_pdb.h \
gimpmessage_pdb.h \
gimppalette_pdb.h \
gimpparasite_pdb.h \
gimppatterns_pdb.h \
gimppatternselect_pdb.h \
gimpplugin_pdb.h \
gimpproceduraldb_pdb.h \
gimpselection_pdb.h \
gimptexttool_pdb.h \
gimptools_pdb.h \
gimpundo_pdb.h \
gimpunit_pdb.h
libgimpi_a_SOURCES = \
gimpenv.c \
gimpenv.h \
......@@ -80,71 +145,35 @@ endif
libgimp_la_SOURCES = \
gimp.c \
gimp.h \
gimp_pdb.h \
gimpbrushes_pdb.c \
gimpbrushes_pdb.h \
gimpbrushselect_pdb.c \
gimpbrushselect_pdb.h \
gimpchannel_pdb.c \
gimpchannel_pdb.h \
${PDB_WRAPPERS_C} \
${PDB_WRAPPERS_H} \
gimpcolorspace.c \
gimpcolorspace.h \
gimpconvert_pdb.c \
gimpconvert_pdb.h \
gimpdisplay_pdb.c \
gimpdisplay_pdb.h \
gimpdrawable.c \
gimpdrawable.h \
gimpdrawable_pdb.c \
gimpdrawable_pdb.h \
gimpenv.c \
gimpenv.h \
gimpfileops_pdb.c \
gimpfileops_pdb.h \
gimpgradient_pdb.c \
gimpgradient_pdb.h \
gimpgradientselect_pdb.c \
gimpgradientselect_pdb.h \
gimpguides_pdb.c \
gimpguides_pdb.h \
gimpgradientselect.c \
gimpgradientselect.h \
gimphelp.c \
gimphelp_pdb.c \
gimphelp_pdb.h \
gimpimage_pdb.c \
gimpimage_pdb.h \
gimplayer_pdb.c \
gimplayer_pdb.h \
gimpimage.c \
gimpimage.h \
gimpmatrix.c \
gimpmatrix.h \
gimpmessage_pdb.c \
gimpmessage_pdb.h \
gimppalette_pdb.c \
gimpparasite.c \
gimpparasite.h \
gimpparasiteio.c \
gimpparasiteio.h \
gimpparasite_pdb.c \
gimpparasite_pdb.h \
gimppatterns_pdb.c \
gimppatterns_pdb.h \
gimppatternselect_pdb.c \
gimppatternselect_pdb.h \
gimppixelrgn.c \
gimppixelrgn.h \
gimpplugin_pdb.c \
gimpplugin_pdb.h \
gimpproceduraldb_pdb.c \
gimpproceduraldb_pdb.h \
gimpprotocol.c \
gimpprotocol.h \
gimpselection_pdb.c \
gimpselection_pdb.h \
gimpselection.c \
gimpselection.h \
gimpsignal.c \
gimpsignal.h \
gimptile.c \
gimptile.h \
gimpunit_pdb.c \
gimpunit_pdb.h \
gimpunit.c \
gimpunit.h \
gimputils.c \
......@@ -178,26 +207,7 @@ libgimpui_la_SOURCES = \
gimpinclude_HEADERS = \
gimp.h \
gimp_pdb.h \
gimpbrushes_pdb.h \
gimpbrushselect_pdb.h \
gimpchannel_pdb.h \
gimpconvert_pdb.h \
gimpdisplay_pdb.h \
gimpdrawable_pdb.h \
gimpfileops_pdb.h \
gimpgradient_pdb.h \
gimpgradientselect_pdb.h \
gimpguides_pdb.h \
gimphelp_pdb.h \
gimpimage_pdb.h \
gimplayer_pdb.h \
gimpmessage_pdb.h \
gimppalette_pdb.h \
gimpparasite_pdb.h \
gimpplugin_pdb.h \
gimpproceduraldb_pdb.h \
gimpselection_pdb.h \
${PDB_WRAPPERS_H} \
gimpchainbutton.h \
gimpcolorbutton.h \
gimpcolordisplay.h \
......@@ -211,7 +221,9 @@ gimpinclude_HEADERS = \
gimpexport.h \
gimpfeatures.h \
gimpfileselection.h \
gimpgradientselect.h \
gimphelpui.h \
gimpimage.h \
gimplimits.h \
gimpmath.h \
gimpmatrix.h \
......@@ -220,11 +232,10 @@ gimpinclude_HEADERS = \
gimpparasite.h \
gimpparasiteio.h \
gimppatheditor.h \
gimppatterns_pdb.h \
gimppatternselect_pdb.h \
gimppixelrgn.h \
gimppixmap.h \
gimpquerybox.h \
gimpselection.h \
gimpsignal.h \
gimpsizeentry.h \
gimptile.h \
......
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimp.c
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
......
......@@ -30,11 +30,14 @@
#include <libgimp/gimpcolorspace.h>
#include <libgimp/gimpdrawable.h>
#include <libgimp/gimpfeatures.h>
#include <libgimp/gimpgradientselect.h>
#include <libgimp/gimpenv.h>
#include <libgimp/gimpimage.h>
#include <libgimp/gimplimits.h>
#include <libgimp/gimpmath.h>
#include <libgimp/gimpparasite.h>
#include <libgimp/gimppixelrgn.h>
#include <libgimp/gimpselection.h>
#include <libgimp/gimptile.h>
#include <libgimp/gimpunit.h>
#include <libgimp/gimputils.h>
......@@ -71,6 +74,8 @@ extern "C" {
#define gimp_image_convert_grayscale gimp_convert_grayscale
#define gimp_image_convert_indexed gimp_convert_indexed
#define gimp_image_duplicate gimp_channel_ops_duplicate
#define gimp_drawable_offset gimp_channel_ops_offset
GIMPVAR guint gimp_major_version;
GIMPVAR guint gimp_minor_version;
......@@ -153,6 +158,7 @@ union _GimpParamData
gint32 d_selection;
gint32 d_boundary;
gint32 d_path;
gint32 d_unit;
GimpParasite d_parasite;
gint32 d_tattoo;
gint32 d_status;
......
......@@ -25,10 +25,15 @@
#include <libgimp/gimpbrushes_pdb.h>
#include <libgimp/gimpbrushselect_pdb.h>
#include <libgimp/gimpchannel_pdb.h>
#include <libgimp/gimpchannelops_pdb.h>
#include <libgimp/gimpcolor_pdb.h>
#include <libgimp/gimpconvert_pdb.h>
#include <libgimp/gimpdisplay_pdb.h>
#include <libgimp/gimpdrawable_pdb.h>
#include <libgimp/gimpedit_pdb.h>
#include <libgimp/gimpfileops_pdb.h>
#include <libgimp/gimpfloatingsel_pdb.h>
#include <libgimp/gimpgimprc_pdb.h>
#include <libgimp/gimpgradient_pdb.h>
#include <libgimp/gimpgradientselect_pdb.h>
#include <libgimp/gimpguides_pdb.h>
......@@ -43,5 +48,9 @@
#include <libgimp/gimpproceduraldb_pdb.h>
#include <libgimp/gimpplugin_pdb.h>
#include <libgimp/gimpselection_pdb.h>
#include <libgimp/gimptexttool_pdb.h>
#include <libgimp/gimptools_pdb.h>
#include <libgimp/gimpundo_pdb.h>
#endif /* __GIMP_PDB_H__ */
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
*
* gimpchannelops_pdb.c
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/* NOTE: This file is autogenerated by pdbgen.pl */
#include "gimp.h"
void
gimp_channel_ops_offset (gint32 drawable_ID,
gboolean wrap_around,
GimpChannelOffsetType fill_type,
gint offset_x,
gint offset_y)
{
GParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_ops_offset",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, wrap_around,
PARAM_INT32, fill_type,
PARAM_INT32, offset_x,
PARAM_INT32, offset_y,
PARAM_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
gint32
gimp_channel_ops_duplicate (gint32 image_ID)
{
GParam *return_vals;
gint nreturn_vals;
gint32 new_image_ID = -1;
return_vals = gimp_run_procedure ("gimp_channel_ops_duplicate",
&nreturn_vals,
PARAM_IMAGE, image_ID,
PARAM_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
new_image_ID = return_vals[1].data.d_image;
gimp_destroy_params (return_vals, nreturn_vals);
return new_image_ID;
}
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
*
* gimpchannelops_pdb.h
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/* NOTE: This file is autogenerated by pdbgen.pl */
#ifndef __GIMP_CHANNEL_OPS_PDB_H__
#define __GIMP_CHANNEL_OPS_PDB_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* For information look into the C source or the html documentation */
void gimp_channel_ops_offset (gint32 drawable_ID,
gboolean wrap_around,
GimpChannelOffsetType fill_type,
gint offset_x,
gint offset_y);
gint32 gimp_channel_ops_duplicate (gint32 image_ID);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GIMP_CHANNEL_OPS_PDB_H__ */
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
*
* gimpcolor_pdb.c
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/* NOTE: This file is autogenerated by pdbgen.pl */
#include "gimp.h"
void
gimp_brightness_contrast (gint32 drawable_ID,
gint brightness,
gint contrast)
{
GParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_brightness_contrast",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, brightness,
PARAM_INT32, contrast,
PARAM_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
void
gimp_levels (gint32 drawable_ID,
GimpChannelLutType channel,
gint low_input,
gint high_input,
gdouble gamma,
gint low_output,
gint high_output)
{
GParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_levels",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, channel,
PARAM_INT32, low_input,
PARAM_INT32, high_input,
PARAM_FLOAT, gamma,
PARAM_INT32, low_output,
PARAM_INT32, high_output,
PARAM_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
void
gimp_posterize (gint32 drawable_ID,
gint levels)
{
GParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_posterize",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, levels,
PARAM_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
void
gimp_desaturate (gint32 drawable_ID)
{
GParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_desaturate",