mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00

- libgimpbase: change GPParam to transfer all information about the GValues we use, in the same way done for GPParamDef. GPParam is now different from GimpParam from libgimp, pointers can't be casted any longer. The protocol is now completely GimpPDBArgType-free. Remove gp_params_destroy() from the public API. - libgimp: add API to convert between an array of GPParams and GimpValueArray, the latter is now the new official API for dealing with procedure arguments and return values, GimpParam is cruft (the wire now talks with GimpPlugIn more directly than with the members of GimpPlugInInfo, which need additional compat conversions). - libgimp, app: rename gimpgpparamspecs.[ch] to simply gimpgpparams.[ch] which is also more accurate because they now contain GValue functions too. The code that used to live in app/plug-in/plug-in-params.h is now completely in libgimp. - app: contains no protocol compat code any longer, the only place that uses GimpPDBArgType is the PDB query procedure implementation, which also needs to change. - app: change some forgotten int32 run-modes to enums.
40 lines
1.6 KiB
C
40 lines
1.6 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpgpcompat.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 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/>.
|
|
*/
|
|
|
|
#ifndef __GIMP_GP_COMPAT_H__
|
|
#define __GIMP_GP_COMPAT_H__
|
|
|
|
|
|
GParamSpec * _gimp_gp_compat_param_spec (GimpPDBArgType arg_type,
|
|
const gchar *name,
|
|
const gchar *nick,
|
|
const gchar *blurb);
|
|
|
|
GType _gimp_pdb_arg_type_to_gtype (GimpPDBArgType type);
|
|
GimpPDBArgType _gimp_pdb_gtype_to_arg_type (GType type);
|
|
|
|
GimpValueArray * _gimp_params_to_value_array (const GimpParam *params,
|
|
gint n_params,
|
|
gboolean full_copy);
|
|
GimpParam * _gimp_value_array_to_params (GimpValueArray *args,
|
|
gboolean full_copy);
|
|
|
|
|
|
#endif /* __GIMP_GP_COMPAT_H__ */
|