2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 typedef struct _Plugin Plugin;
38 struct PluginFeature {
39 PluginFeatureType type;
43 /* Functions to implement by the plugin */
44 gint plugin_init (gchar **error);
45 void plugin_done (void);
46 const gchar *plugin_name (void);
47 const gchar *plugin_desc (void);
48 const gchar *plugin_version (void);
49 struct PluginFeature *plugin_provides (void);
51 /* Functions by the sylpheed plugin system */
52 Plugin *plugin_load (const gchar *filename,
54 void plugin_unload (Plugin *plugin);
55 void plugin_load_all (const gchar *type);
56 void plugin_unload_all (const gchar *type);
57 void plugin_save_list (void);
58 void plugin_load_standard_plugins (void);
60 GSList *plugin_get_list (void);
61 GSList *plugin_get_unloaded_list(void);
62 const gchar *plugin_get_name (Plugin *plugin);
63 const gchar *plugin_get_desc (Plugin *plugin);
64 const gchar *plugin_get_version (Plugin *plugin);
65 const gchar *plugin_get_error (Plugin *plugin);
66 gint check_plugin_version (guint32 minimum_claws_version,
67 guint32 compiled_claws_version,
68 const gchar *plugin_name,