* src/common/plugin.[ch]
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 30 Apr 2003 14:31:22 +0000 (14:31 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 30 Apr 2003 14:31:22 +0000 (14:31 +0000)
* src/plugins/clamav/clamav_plugin.[ch]
* src/plugins/clamav/clamav_plugin_gtk.c
* src/plugins/demo/demo.c
* src/plugins/dillo_viewer/dillo_viewer.c
* src/plugins/image_viewer/plugin.c
* src/plugins/image_viewer/viewer.[ch]
* src/plugins/image_viewer/viewerprefs.[ch]
* src/plugins/mathml_viewer/mathml_viewer.c
* src/plugins/spamassassin/spamassassin.[ch]
* src/plugins/spamassassin/spamassassin_gtk.c
* src/plugins/trayicon/trayicon.c
clean up

19 files changed:
ChangeLog.claws
configure.ac
src/common/plugin.c
src/common/plugin.h
src/plugins/clamav/clamav_plugin.c
src/plugins/clamav/clamav_plugin.h
src/plugins/clamav/clamav_plugin_gtk.c
src/plugins/demo/demo.c
src/plugins/dillo_viewer/dillo_viewer.c
src/plugins/image_viewer/plugin.c
src/plugins/image_viewer/viewer.c
src/plugins/image_viewer/viewer.h
src/plugins/image_viewer/viewerprefs.c
src/plugins/image_viewer/viewerprefs.h
src/plugins/mathml_viewer/mathml_viewer.c
src/plugins/spamassassin/spamassassin.c
src/plugins/spamassassin/spamassassin.h
src/plugins/spamassassin/spamassassin_gtk.c
src/plugins/trayicon/trayicon.c

index 9729c329d84ebb899512b1ee60c2670f3180f1c4..bb190951853b9b520ee81ee2102907b76abf8cf7 100644 (file)
@@ -1,3 +1,19 @@
+2003-04-30 [alfons]    0.8.11claws130
+
+       * src/common/plugin.[ch]
+       * src/plugins/clamav/clamav_plugin.[ch]
+       * src/plugins/clamav/clamav_plugin_gtk.c
+       * src/plugins/demo/demo.c
+       * src/plugins/dillo_viewer/dillo_viewer.c
+       * src/plugins/image_viewer/plugin.c
+       * src/plugins/image_viewer/viewer.[ch]
+       * src/plugins/image_viewer/viewerprefs.[ch]
+       * src/plugins/mathml_viewer/mathml_viewer.c
+       * src/plugins/spamassassin/spamassassin.[ch]
+       * src/plugins/spamassassin/spamassassin_gtk.c
+       * src/plugins/trayicon/trayicon.c
+               clean up
+
 2003-04-30 [alfons]    0.8.11claws129
 
        * src/common/utils.c
index 06ecd07b2c0ee6262825b369e7e9f1bfef6d1e1b..884e5956454054b4253147ab61feb0e097f6c129 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=11
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws129
+EXTRA_VERSION=claws130
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index c8a3d154cfb8959d77a0248ee833cec478e6f0e1..5009ac03a3bdbe57beff74416b361df6f8df861b 100644 (file)
@@ -32,9 +32,9 @@ struct _Plugin
 {
        gchar   *filename;
        GModule *module;
-       gchar   *(*name) ();
-       gchar   *(*desc) ();
-       gchar   *(*type) ();
+       gchar   *(*name) (void);
+       gchar   *(*desc) (void);
+       gchar   *(*type) (void);
 };
 
 /**
@@ -48,7 +48,7 @@ static gint list_find_by_string(gconstpointer data, gconstpointer str)
        return strcmp((gchar *)data, (gchar *)str) ? TRUE : FALSE;
 }
 
-void plugin_save_list()
+void plugin_save_list(void)
 {
        gchar *rcpath, *block;
        PrefFile *pfile;
@@ -207,7 +207,7 @@ void plugin_unload_all(gchar *type)
        }
 }
 
-GSList *plugin_get_list()
+GSList *plugin_get_list(void)
 {
        return g_slist_copy(plugins);
 }
index 6d18e27afd3505d7b666be349670f9ac1c67890c..638473a45782165f08eab5b26d36641591050134 100644 (file)
@@ -26,19 +26,19 @@ typedef struct _Plugin Plugin;
 
 /* Functions to implement by the plugin */
 gint plugin_init               (gchar          **error);
-void plugin_done               ();
-const gchar *plugin_name       ();
-const gchar *plugin_desc       ();
+void plugin_done               (void);
+const gchar *plugin_name       (void);
+const gchar *plugin_desc       (void);
 
 /* Functions by the sylpheed plugin system */
 gint plugin_load               (const gchar     *filename,
                                 gchar          **error);
 void plugin_unload             (Plugin          *plugin);
-void plugin_load_all           ();
-void plugin_unload_all         ();
-void plugin_save_list          ();
+void plugin_load_all           (void);
+void plugin_unload_all         (void);
+void plugin_save_list          (void);
 
-GSList *plugin_get_list                ();
+GSList *plugin_get_list                (void);
 const gchar *plugin_get_name   (Plugin          *plugin);
 const gchar *plugin_get_desc   (Plugin          *plugin);
 
index eac85ce429e1ed4f44bc9d5b820740655986d4ec..7f1ebaf02487ed6d69983c81a74bd55c72c9d893 100644 (file)
@@ -189,12 +189,12 @@ static gboolean mail_filtering_hook(gpointer source, gpointer data)
 
 #undef IS_FIRST_PART_TEXT
 
-ClamAvConfig *clamav_get_config()
+ClamAvConfig *clamav_get_config(void)
 {
        return &config;
 }
 
-void clamav_save_config()
+void clamav_save_config(void)
 {
        PrefFile *pfile;
        gchar *rcpath;
@@ -234,7 +234,7 @@ gint plugin_init(gchar **error)
        
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        hooks_unregister_hook(MAIL_FILTERING_HOOKLIST, hook_id);
        g_free(config.clamav_save_folder);
index c45dabe4eadcc9228476311ac7993ca3547ad81f..c2ed7d7dd58c5b3708f0c6eaf9ec538ac88deffb 100644 (file)
@@ -33,7 +33,7 @@ struct _ClamAvConfig
        gchar           *clamav_save_folder;
 };
 
-ClamAvConfig *clamav_get_config();
-void         clamav_save_config();
+ClamAvConfig *clamav_get_config                (void);
+void         clamav_save_config        (void);
 
 #endif
index 1e4af42e032bd2342bbc3386f3877157e3bbdfb2..ee321eb95c255985390fe8cab4a8ef1c34336ba4 100644 (file)
@@ -241,7 +241,7 @@ gint plugin_init(gchar **error)
        return 0;       
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        prefs_gtk_unregister_page((PrefsPage *) &clamav_page);
 
index 72df275a4838eeae31437ca8599f4042110880ba..74e98025105633afeb799438a4d2226d684bec81 100644 (file)
@@ -46,7 +46,7 @@ gint plugin_init(gchar **error)
        return 0;
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        hooks_unregister_hook(LOG_APPEND_TEXT_HOOKLIST, hook_id);
 
index 09b5610e845130b329c56bf06b50c916fb814819..a166bd4c6a9f5a8d48400d0ecd3d933f5ab8e73a 100644 (file)
@@ -151,7 +151,7 @@ gint plugin_init(gchar **error)
        return 0;       
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        mimeview_unregister_viewer_factory(&dillo_viewer_factory);
 }
index 728c74ae9711c494b0c76d73e8d7978a5dca7db1..f29e13d397a582f1ceeabf4aad1d07cd679620e7 100644 (file)
@@ -29,7 +29,7 @@ gint plugin_init(gchar **error)
        return 0;       
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        image_viewer_done();
        image_viewer_prefs_done();
index 68a1f9b3b4186951d4517593fec1ec34547f7d9b..7e20186f374b8ec450ad97df116e768cd7a384ef 100644 (file)
@@ -287,12 +287,12 @@ MimeViewerFactory image_viewer_factory =
        image_viewer_create,
 };
 
-void image_viewer_init()
+void image_viewer_init(void)
 {
        mimeview_register_viewer_factory(&image_viewer_factory);
 }
 
-void image_viewer_done()
+void image_viewer_done(void)
 {
        mimeview_unregister_viewer_factory(&image_viewer_factory);
 }
index f6fb86e17dfc23bfffc2687d35aa74f2e454ce52..26e30ecc536700012f18e67cfe33b4cad2986b44 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "mimeview.h"
 
-void image_viewer_init();
-void image_viewer_done();
+void image_viewer_init (void);
+void image_viewer_done (void);
 
 #endif
index 03401fa743d4f8e24cf60c9db95b8362f7d4cdc6..9ed289341690acd40674bb505081de02148f344b 100644 (file)
@@ -150,7 +150,7 @@ static void imageviewer_save_func(PrefsPage * _page)
 
 static struct ImageViewerPage imageviewer_page;
 
-void image_viewer_prefs_init()
+void image_viewer_prefs_init(void)
 {
        prefs_set_default(param);
        prefs_read_config(param, PREFS_BLOCK_NAME, COMMON_RC);
@@ -163,7 +163,7 @@ void image_viewer_prefs_init()
        prefs_gtk_register_page((PrefsPage *) &imageviewer_page);
 }
 
-void image_viewer_prefs_done()
+void image_viewer_prefs_done(void)
 {
        prefs_gtk_unregister_page((PrefsPage *) &imageviewer_page);
 }
index a813ee58d88a94545b5d1c8973450c3401eb5fc4..d6e2b2d3ecaac6df7c2d8f0dcf7256820eee1e0b 100644 (file)
@@ -32,7 +32,7 @@ struct _ImageViewerPrefs
 
 extern ImageViewerPrefs imageviewerprefs;
 
-void image_viewer_prefs_init();
-void image_viewer_prefs_done();
+void image_viewer_prefs_init   (void);
+void image_viewer_prefs_done   (void);
 
 #endif
index 57f8805400a5bac1e2bc763162b2d3d376ef1464..58b50eb354d1d3fc536856aa17c7364c7cf0df61 100644 (file)
@@ -92,7 +92,7 @@ static void mathml_destroy_viewer(MimeViewer *_viewer)
        g_free(viewer);
 }
 
-static MimeViewer *mathml_viewer_create()
+static MimeViewer *mathml_viewer_create(void)
 {
        MathMLViewer *viewer;
 
@@ -133,7 +133,7 @@ gint plugin_init(gchar **error)
        return 0;       
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        mimeview_unregister_viewer_factory(&mathml_viewer_factory);
 }
index 4c82d89bb31d9927086620778a1af6e22b539c94..1368ca432599f7afa23e8a419aa5051a518281c4 100644 (file)
@@ -154,12 +154,12 @@ static gboolean mail_filtering_hook(gpointer source, gpointer data)
        return FALSE;
 }
 
-SpamAssassinConfig *spamassassin_get_config()
+SpamAssassinConfig *spamassassin_get_config(void)
 {
        return &config;
 }
 
-void spamassassin_save_config()
+void spamassassin_save_config(void)
 {
        PrefFile *pfile;
        gchar *rcpath;
@@ -205,7 +205,7 @@ gint plugin_init(gchar **error)
        
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        hooks_unregister_hook(MAIL_FILTERING_HOOKLIST, hook_id);
        g_free(config.hostname);
index ac744ad3f4586f9eec9deb4b114bd25592d68fbd..817a75ae034e3ef6899f9d6442c3f25dcbbfa185 100644 (file)
@@ -34,7 +34,7 @@ struct _SpamAssassinConfig
        gchar           *save_folder;
 };
 
-SpamAssassinConfig *spamassassin_get_config();
-void               spamassassin_save_config();
+SpamAssassinConfig *spamassassin_get_config    (void);
+void               spamassassin_save_config    (void);
 
 #endif
index 07a84e0e1fe009cb98fd35f809f8cea6676ef13b..6db6a94a6dc2b28ae3a294631c8f6b3523d67926 100644 (file)
@@ -278,7 +278,7 @@ gint plugin_init(gchar **error)
        return 0;       
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        prefs_gtk_unregister_page((PrefsPage *) &spamassassin_page);
 
index 2f69c70c8ff13d011e27d11baf321702c7fbf33d..ab419eb8c97f5d45541fff685ddfd134f3ef005a 100644 (file)
@@ -82,7 +82,7 @@ static void set_trayicon_pixmap(TrayIconType icontype)
        gtk_widget_shape_combine_mask(GTK_WIDGET(trayicon), bitmap, GTK_WIDGET(image)->allocation.x, GTK_WIDGET(image)->allocation.y);
 }
 
-static void update()
+static void update(void)
 {
        gint new, unread, unreadmarked, total;
        gchar *buf;
@@ -168,7 +168,7 @@ int plugin_init(gchar **error)
         return 0;
 }
 
-void plugin_done()
+void plugin_done(void)
 {
        gtk_widget_destroy(GTK_WIDGET(trayicon));
        hooks_unregister_hook(FOLDER_ITEM_UPDATE_HOOKLIST, hook_id);