
Core procedures are all the procedures created for libgimp basically. In opposition, procedures created by plug-ins are not core procedures. GimpProcedure class in libgimp now has a gimp_procedure_is_core() which will tell you if a procedure is core or not. Private procedures already existed, except that they were only marked as "private" in libgimp (e.g. _gimp_font_get_lookup_name()) starting with an underscore and marked as G_GNUC_INTERNAL. Now we also store this information in the procedure object itself for reuse.
44 lines
1.5 KiB
C
44 lines
1.5 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* gimppdbprocedure.h
|
|
* Copyright (C) 2019 Michael Natterer <mitch@gimp.org>
|
|
*
|
|
* 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_PDB_PROCEDURE_H__
|
|
#define __GIMP_PDB_PROCEDURE_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
#define GIMP_TYPE_PDB_PROCEDURE (_gimp_pdb_procedure_get_type ())
|
|
G_DECLARE_FINAL_TYPE (GimpPDBProcedure, _gimp_pdb_procedure, GIMP, PDB_PROCEDURE, GimpProcedure)
|
|
|
|
|
|
G_GNUC_INTERNAL GimpProcedure * _gimp_pdb_procedure_new (GimpPDB *pdb,
|
|
const gchar *name,
|
|
gboolean is_core);
|
|
|
|
G_GNUC_INTERNAL gboolean _gimp_pdb_procedure_is_core (GimpPDBProcedure *procedure);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_PDB_PROCEDURE_H__ */
|