2010-03-01 [iwkse] 3.7.5cvs27
authorSalvatore De Paolis <iwkse@claws-mail.org>
Mon, 1 Mar 2010 20:33:27 +0000 (20:33 +0000)
committerSalvatore De Paolis <iwkse@claws-mail.org>
Mon, 1 Mar 2010 20:33:27 +0000 (20:33 +0000)
* src/common/plugin.h
* src/common/plugin.c
Add API for getting a loaded Plugin from the
plugin's name, plugin_get_loaded_by_name (const gchar *name)
Thanks to Colin, Michael

ChangeLog
PATCHSETS
configure.ac
src/common/plugin.c
src/common/plugin.h

index 40d632c3e4b176275ad6f0ae1351c4d83b4f3147..ad1d9cf238eb52a8b90964b2f505cd122a8ff680 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-01 [iwkse]     3.7.5cvs27
+
+       * src/common/plugin.h
+       * src/common/plugin.c
+                       Add API for getting a loaded Plugin from the
+                       plugin's name, plugin_get_loaded_by_name (const gchar *name)
+                       Thanks to Colin, Michael
+
 2010-02-27 [colin]     3.7.5cvs26
 
        * configure.ac
 2010-02-27 [colin]     3.7.5cvs26
 
        * configure.ac
index 6fbc6e41f59ed7115ec56581de638e68f907c0bc..065b8c1c27f7b7d02ed2af2ba34363e0cc640c5e 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.43.2.115 -r 1.43.2.116 src/toolbar.c;  ) > 3.7.5cvs24.patchset
 ( cvs diff -u -r 1.30.2.60 -r 1.30.2.61 src/prefs_toolbar.c;  ) > 3.7.5cvs25.patchset
 ( cvs diff -u -r 1.654.2.4038 -r 1.654.2.4039 configure.ac;  cvs diff -u -r 1.100.2.73 -r 1.100.2.74 AUTHORS;  cvs diff -u -r 1.1.2.65 -r 1.1.2.66 src/gtk/authors.h;  cvs diff -u -r 1.1.2.7 -r 1.1.2.8 manual/Makefile.am;  diff -u /dev/null manual/de/Makefile.am;  cvs diff -u -r 1.1.2.1 -r 1.1.2.2 manual/de/account.xml;  diff -u /dev/null manual/de/ack.xml;  diff -u /dev/null manual/de/addrbook.xml;  diff -u /dev/null manual/de/advanced.xml;  diff -u /dev/null manual/de/claws-mail-manual.xml;  diff -u /dev/null manual/de/faq.xml;  diff -u /dev/null manual/de/glossary.xml;  diff -u /dev/null manual/de/gpl.xml;  diff -u /dev/null manual/de/handling.xml;  diff -u /dev/null manual/de/intro.xml;  diff -u /dev/null manual/de/keyboard.xml;  diff -u /dev/null manual/de/plugins.xml;  diff -u /dev/null manual/de/starting.xml;  diff -u /dev/null manual/de/dist/.cvsignore;  diff -u /dev/null manual/de/dist/Makefile.am;  diff -u /dev/null manual/de/dist/html/.cvsignore;  diff -u /dev/null manual/de/dist/html/Makefile.am;  diff -u /dev/null manual/de/dist/pdf/.cvsignore;  diff -u /dev/null manual/de/dist/pdf/Makefile.am;  diff -u /dev/null manual/de/dist/ps/.cvsignore;  diff -u /dev/null manual/de/dist/ps/Makefile.am;  diff -u /dev/null manual/de/dist/txt/.cvsignore;  diff -u /dev/null manual/de/dist/txt/Makefile.am;  ) > 3.7.5cvs26.patchset
 ( cvs diff -u -r 1.43.2.115 -r 1.43.2.116 src/toolbar.c;  ) > 3.7.5cvs24.patchset
 ( cvs diff -u -r 1.30.2.60 -r 1.30.2.61 src/prefs_toolbar.c;  ) > 3.7.5cvs25.patchset
 ( cvs diff -u -r 1.654.2.4038 -r 1.654.2.4039 configure.ac;  cvs diff -u -r 1.100.2.73 -r 1.100.2.74 AUTHORS;  cvs diff -u -r 1.1.2.65 -r 1.1.2.66 src/gtk/authors.h;  cvs diff -u -r 1.1.2.7 -r 1.1.2.8 manual/Makefile.am;  diff -u /dev/null manual/de/Makefile.am;  cvs diff -u -r 1.1.2.1 -r 1.1.2.2 manual/de/account.xml;  diff -u /dev/null manual/de/ack.xml;  diff -u /dev/null manual/de/addrbook.xml;  diff -u /dev/null manual/de/advanced.xml;  diff -u /dev/null manual/de/claws-mail-manual.xml;  diff -u /dev/null manual/de/faq.xml;  diff -u /dev/null manual/de/glossary.xml;  diff -u /dev/null manual/de/gpl.xml;  diff -u /dev/null manual/de/handling.xml;  diff -u /dev/null manual/de/intro.xml;  diff -u /dev/null manual/de/keyboard.xml;  diff -u /dev/null manual/de/plugins.xml;  diff -u /dev/null manual/de/starting.xml;  diff -u /dev/null manual/de/dist/.cvsignore;  diff -u /dev/null manual/de/dist/Makefile.am;  diff -u /dev/null manual/de/dist/html/.cvsignore;  diff -u /dev/null manual/de/dist/html/Makefile.am;  diff -u /dev/null manual/de/dist/pdf/.cvsignore;  diff -u /dev/null manual/de/dist/pdf/Makefile.am;  diff -u /dev/null manual/de/dist/ps/.cvsignore;  diff -u /dev/null manual/de/dist/ps/Makefile.am;  diff -u /dev/null manual/de/dist/txt/.cvsignore;  diff -u /dev/null manual/de/dist/txt/Makefile.am;  ) > 3.7.5cvs26.patchset
+( cvs diff -u -r 1.5.2.14 -r 1.5.2.15 src/common/plugin.h;  cvs diff -u -r 1.13.2.37 -r 1.13.2.38 src/common/plugin.c;  ) > 3.7.5cvs27.patchset
index a28af4eae8fb5323361c1fb65373aba9170db98c..38e24931a6986f055830d70ed0bcd9761c6c505b 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=7
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=26
+EXTRA_VERSION=27
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 3a9619ba9b444d097928c490ad8588881cd4b9ad..43b34f8bb8bca74371a0ba68e59853e326e2fc98 100644 (file)
@@ -566,6 +566,22 @@ GSList *plugin_get_list(void)
        return new;
 }
 
        return new;
 }
 
+Plugin *plugin_get_loaded_by_name(const gchar *name) 
+{
+       Plugin *plugin = NULL;
+       GSList *new, *cur; 
+       new = plugin_get_list();
+       for (cur = new; cur; cur = g_slist_next(cur)) {
+               plugin = (Plugin *)cur->data;
+               if (!g_ascii_strcasecmp(plugin->name(), name)) 
+            break;
+               else 
+            plugin = NULL;
+       }
+       g_slist_free(new);
+       return plugin;
+}
+
 GSList *plugin_get_unloaded_list(void)
 {
        return g_slist_copy(unloaded_plugins);
 GSList *plugin_get_unloaded_list(void)
 {
        return g_slist_copy(unloaded_plugins);
index f3884689ea95a1d9f0b7770ab6105c4c24d671e1..56e6e1223a7704199745c1812b1d4be15d84c57c 100644 (file)
@@ -64,6 +64,7 @@ const gchar *plugin_get_name  (Plugin          *plugin);
 const gchar *plugin_get_desc   (Plugin          *plugin);
 const gchar *plugin_get_version        (Plugin          *plugin);
 const gchar *plugin_get_error  (Plugin          *plugin);
 const gchar *plugin_get_desc   (Plugin          *plugin);
 const gchar *plugin_get_version        (Plugin          *plugin);
 const gchar *plugin_get_error  (Plugin          *plugin);
+Plugin      *plugin_get_loaded_by_name(const gchar *name);
 gint check_plugin_version      (guint32 minimum_claws_version,
                                 guint32 compiled_claws_version,
                                 const gchar *plugin_name,
 gint check_plugin_version      (guint32 minimum_claws_version,
                                 guint32 compiled_claws_version,
                                 const gchar *plugin_name,