1997-11-24 22:05:25 +00:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2004-09-22 15:12:24 +00:00
|
|
|
* plug-in-def.h
|
|
|
|
*
|
1997-11-24 22:05:25 +00:00
|
|
|
* 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
|
1998-04-13 05:44:11 +00:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1997-11-24 22:05:25 +00:00
|
|
|
*/
|
2000-12-16 21:37:03 +00:00
|
|
|
|
2002-03-20 17:46:13 +00:00
|
|
|
#ifndef __PLUG_IN_DEF_H__
|
|
|
|
#define __PLUG_IN_DEF_H__
|
1997-11-24 22:05:25 +00:00
|
|
|
|
2002-03-28 00:10:56 +00:00
|
|
|
#include <time.h>
|
1997-11-24 22:05:25 +00:00
|
|
|
|
2001-12-27 23:45:12 +00:00
|
|
|
struct _PlugInDef
|
|
|
|
{
|
|
|
|
gchar *prog;
|
2006-04-07 08:16:26 +00:00
|
|
|
GSList *procedures;
|
2003-08-28 18:49:11 +00:00
|
|
|
gchar *locale_domain_name;
|
|
|
|
gchar *locale_domain_path;
|
|
|
|
gchar *help_domain_name;
|
|
|
|
gchar *help_domain_uri;
|
2001-12-27 23:45:12 +00:00
|
|
|
time_t mtime;
|
2003-01-17 18:07:37 +00:00
|
|
|
gboolean needs_query; /* Does the plug-in need to be queried ? */
|
|
|
|
gboolean has_init; /* Does the plug-in need to be initialized ? */
|
2001-12-27 23:45:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-04-05 08:38:33 +00:00
|
|
|
PlugInDef * plug_in_def_new (const gchar *prog);
|
2006-04-07 08:16:26 +00:00
|
|
|
void plug_in_def_free (PlugInDef *plug_in_def);
|
1999-05-03 19:22:58 +00:00
|
|
|
|
2006-04-05 08:38:33 +00:00
|
|
|
void plug_in_def_add_procedure (PlugInDef *plug_in_def,
|
|
|
|
GimpPlugInProcedure *proc);
|
2006-04-07 08:16:26 +00:00
|
|
|
void plug_in_def_remove_procedure (PlugInDef *plug_in_def,
|
|
|
|
GimpPlugInProcedure *proc);
|
2000-12-29 15:22:01 +00:00
|
|
|
|
2006-04-05 08:38:33 +00:00
|
|
|
void plug_in_def_set_locale_domain_name (PlugInDef *plug_in_def,
|
|
|
|
const gchar *domain_name);
|
|
|
|
void plug_in_def_set_locale_domain_path (PlugInDef *plug_in_def,
|
|
|
|
const gchar *domain_path);
|
2003-08-28 18:49:11 +00:00
|
|
|
|
2006-04-05 08:38:33 +00:00
|
|
|
void plug_in_def_set_help_domain_name (PlugInDef *plug_in_def,
|
|
|
|
const gchar *domain_name);
|
|
|
|
void plug_in_def_set_help_domain_uri (PlugInDef *plug_in_def,
|
|
|
|
const gchar *domain_uri);
|
1999-05-03 19:22:58 +00:00
|
|
|
|
2006-04-05 08:38:33 +00:00
|
|
|
void plug_in_def_set_mtime (PlugInDef *plug_in_def,
|
|
|
|
time_t mtime);
|
|
|
|
void plug_in_def_set_needs_query (PlugInDef *plug_in_def,
|
|
|
|
gboolean needs_query);
|
|
|
|
void plug_in_def_set_has_init (PlugInDef *plug_in_def,
|
|
|
|
gboolean has_init);
|
2003-01-17 18:07:37 +00:00
|
|
|
|
2000-12-29 15:22:01 +00:00
|
|
|
|
2002-03-20 17:46:13 +00:00
|
|
|
#endif /* __PLUG_IN_DEF_H__ */
|