1
/* The GIMP -- an image manipulation program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
#ifndef __PLUG_INS_H__
22
#define __PLUG_INS_H__
25
void plug_ins_init (Gimp *gimp,
27
GimpInitStatusFunc status_callback);
28
void plug_ins_exit (Gimp *gimp);
30
/* Register an internal plug-in. This is for file load-save
31
* handlers, which are organized around the plug-in data structure.
32
* This could all be done a little better, but oh well. -josh
34
void plug_ins_add_internal (Gimp *gimp,
35
PlugInProcDef *proc_def);
37
/* Add in the file load/save handler fields procedure. */
38
PlugInProcDef * plug_ins_file_register_magic (Gimp *gimp,
40
const gchar *extensions,
41
const gchar *prefixes,
44
PlugInProcDef * plug_ins_file_register_mime (Gimp *gimp,
46
const gchar *mime_type);
48
PlugInProcDef * plug_ins_file_register_thumb_loader
50
const gchar *load_proc,
51
const gchar *thumb_proc);
54
/* Add a plug-in definition. */
55
void plug_ins_def_add_from_rc (Gimp *gimp,
56
PlugInDef *plug_in_def);
58
/* Add/Remove temporary procedures. */
59
void plug_ins_temp_proc_def_add (Gimp *gimp,
60
PlugInProcDef *proc_def);
61
void plug_ins_temp_proc_def_remove (Gimp *gimp,
62
PlugInProcDef *proc_def);
64
/* Retrieve a plug-ins locale domain */
65
const gchar * plug_ins_locale_domain (Gimp *gimp,
66
const gchar *prog_name,
67
const gchar **locale_path);
69
/* Retrieve a plug-ins help domain */
70
const gchar * plug_ins_help_domain (Gimp *gimp,
71
const gchar *prog_name,
72
const gchar **help_uri);
74
/* Retrieve all help domains */
75
gint plug_ins_help_domains (Gimp *gimp,
76
gchar ***help_domains,
79
/* Retreive a plug-ins proc_def from its ProcRecord */
80
PlugInProcDef * plug_ins_proc_def_find (Gimp *gimp,
81
ProcRecord *proc_rec);
84
GSList * plug_ins_extensions_parse (gchar *extensions);
85
PlugInImageType plug_ins_image_types_parse (gchar *image_types);
88
#endif /* __PLUG_INS_H__ */