mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 21:11:43 +00:00
84a9e5ecf8
2006-04-09 Michael Natterer <mitch@gimp.org> * app/plug-in/plug-in-rc.[ch] (plug_in_rc_parse): return a GSList* of PlugInDefs instead of a boolean. Don't return anything if any parse error occurs (before, we trusted PlugInDefs from partially broken files). Don't call plug_ins_def_add_from_rc() and don't #include "plug-ins.h". * app/plug-in/plug-ins.[ch]: made plug_ins_def_add_from_rc() private and call it on all PlugInDefs returned by plug_in_rc_parse(). Renamed plug_ins_init_file() to plug_ins_add_from_file() (plug_ins_init): remove code that checks for duplicate plug-in procedures... (plug_ins_procedure_insert): ... and add it where it belongs.
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* plug-in-rc.h
|
|
* Copyright (C) 2001 Sven Neumann <sven@gimp.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __PLUG_IN_RC_H__
|
|
#define __PLUG_IN_RC_H__
|
|
|
|
|
|
GSList * plug_in_rc_parse (Gimp *gimp,
|
|
const gchar *filename,
|
|
GError **error);
|
|
gboolean plug_in_rc_write (GSList *plug_in_defs,
|
|
const gchar *filename,
|
|
GError **error);
|
|
|
|
|
|
#endif /* __PLUG_IN_RC_H__ */
|