RSSyl: Allow use of .netrc by libcurl. Bug/enhancement #3309, by Vincent Pelletier
[claws.git] / src / plugins / demo / demo.c
index 74a432a79ec9dddac3b1470f66715326e585ded4..751c33f1e36d1c7615eb864fda3e43f54c8984b5 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail Team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2012 the Claws Mail Team
  *
  * 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
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -13,8 +13,8 @@
  * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * 
  */
 
 #include <glib.h>
@@ -34,7 +34,7 @@ gboolean my_log_hook(gpointer source, gpointer data)
 {
        LogText *logtext = (LogText *)source;
 
-       printf("*** Demo Plugin log: %s\n", logtext->text);
+       g_print("*** Demo Plugin log: %s\n", logtext->text);
 
        return FALSE;
 }
@@ -43,7 +43,7 @@ static guint hook_id;
 
 gint plugin_init(gchar **error)
 {
-       if (!check_plugin_version(MAKE_NUMERIC_VERSION(0, 8, 11, 39),
+       if (!check_plugin_version(MAKE_NUMERIC_VERSION(2,9,2,72),
                                VERSION_NUMERIC, PLUGIN_NAME, error))
                return -1;
 
@@ -53,16 +53,17 @@ gint plugin_init(gchar **error)
                return -1;
        }
 
-       printf("Demo plugin loaded\n");
+       g_print("Demo plugin loaded\n");
 
        return 0;
 }
 
-void plugin_done(void)
+gboolean plugin_done(void)
 {
        hooks_unregister_hook(LOG_APPEND_TEXT_HOOKLIST, hook_id);
 
-       printf("Demo plugin unloaded\n");
+       g_print("Demo plugin unloaded\n");
+       return TRUE;
 }
 
 const gchar *plugin_name(void)
@@ -85,7 +86,7 @@ const gchar *plugin_type(void)
 
 const gchar *plugin_licence(void)
 {
-       return "GPL";
+       return "GPL3+";
 }
 
 const gchar *plugin_version(void)