message_callback = callback;
}
-void cl_buildtrie(struct cl_node *root);
-void cl_freetrie(struct cl_node *root);
+int cl_build(struct cl_node *root);
+void cl_free(struct cl_node *root);
gint plugin_init(gchar **error)
{
gchar *rcpath;
- int no, ret;
+ int ret;
+ unsigned int no;
+
if ((sylpheed_get_version() > VERSION_NUMERIC)) {
*error = g_strdup("Your version of Sylpheed-Claws is newer than the version the ClamAV plugin was built with");
return -1;
hooks_unregister_hook(MAIL_FILTERING_HOOKLIST, hook_id);
g_free(config.clamav_save_folder);
cl_free(cl_database);
+ clamav_gtk_done();
+
debug_print("ClamAV plugin unloaded\n");
}