gimp/libgimp/gimpimageundo_pdb.h
Jehan fec6034c7a pdb: keep both the old and new API alive.
By default the new API will be used. But if we build with
GIMP_DEPRECATED_REPLACE_NEW_API macro, then the same function names will
call the old API with ids.

This way, we don't have to update all our plug-ins at once (which I
tried and is very tedious work).

Note that bindings won't have access to the deprecated API at all.
2019-08-22 15:54:36 +02:00

75 lines
2.6 KiB
C

/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimpimageundo_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 3 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, see
* <https://www.gnu.org/licenses/>.
*/
/* NOTE: This file is auto-generated by pdbgen.pl */
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_IMAGE_UNDO_PDB_H__
#define __GIMP_IMAGE_UNDO_PDB_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#ifndef GIMP_DEPRECATED_REPLACE_NEW_API
gboolean gimp_image_undo_group_start (GimpImage *image);
gboolean gimp_image_undo_group_end (GimpImage *image);
gboolean gimp_image_undo_is_enabled (GimpImage *image);
gboolean gimp_image_undo_disable (GimpImage *image);
gboolean gimp_image_undo_enable (GimpImage *image);
gboolean gimp_image_undo_freeze (GimpImage *image);
gboolean gimp_image_undo_thaw (GimpImage *image);
#else /* GIMP_DEPRECATED_REPLACE_NEW_API */
#define gimp_image_undo_group_start _gimp_image_undo_group_start
#define gimp_image_undo_group_end _gimp_image_undo_group_end
#define gimp_image_undo_is_enabled _gimp_image_undo_is_enabled
#define gimp_image_undo_disable _gimp_image_undo_disable
#define gimp_image_undo_enable _gimp_image_undo_enable
#define gimp_image_undo_freeze _gimp_image_undo_freeze
#define gimp_image_undo_thaw _gimp_image_undo_thaw
#endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
/* Below API are deprecated and should not be used by new plug-ins.
* They are not marked internal as a trick to keep the old API alive for now.
*/
gboolean _gimp_image_undo_group_start (gint32 image_ID);
gboolean _gimp_image_undo_group_end (gint32 image_ID);
gboolean _gimp_image_undo_is_enabled (gint32 image_ID);
gboolean _gimp_image_undo_disable (gint32 image_ID);
gboolean _gimp_image_undo_enable (gint32 image_ID);
gboolean _gimp_image_undo_freeze (gint32 image_ID);
gboolean _gimp_image_undo_thaw (gint32 image_ID);
G_END_DECLS
#endif /* __GIMP_IMAGE_UNDO_PDB_H__ */