changeset 3835:b359aab1c576

[gaim-migrate @ 3985] bugfix. got rid of reload_plugin() function--it's no longer useful. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 30 Oct 2002 21:38:20 +0000
parents c66ed5df69ef
children 11ab18140fd3
files src/module.c
diffstat 1 files changed, 1 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/src/module.c	Wed Oct 30 21:25:28 2002 +0000
+++ b/src/module.c	Wed Oct 30 21:38:20 2002 +0000
@@ -64,7 +64,6 @@
 struct gaim_plugin *  load_plugin(const char *);
 #ifdef GAIM_PLUGINS
               void  unload_plugin(struct gaim_plugin *p);
-struct gaim_plugin *reload_plugin(struct gaim_plugin *p);
 void gaim_signal_connect(GModule *, enum gaim_event, void *, void *);
 void gaim_signal_disconnect(GModule *, enum gaim_event, void *);
 void gaim_plugin_unload(GModule *);
@@ -216,8 +215,7 @@
 	}
 	
 	if (plug && plug->handle) {
-		reload_plugin(plug);
-		return NULL;
+		return plug;
 	}
 	    
 	if (!plug) {
@@ -334,24 +332,6 @@
 	g_timeout_add(5000, unload_timeout, handle);
 }
 
-/* Do unload/load cycle of plugin. */
-struct gaim_plugin *reload_plugin(struct gaim_plugin *p)
-{
-	char file[1024];
-	GModule *handle = p->handle;
-
-	strncpy(file, g_module_name(handle), sizeof(file));
-	file[sizeof(file) - 1] = '\0';
-
-	debug_printf("Reloading %s\n", file);
-
-	/* Unload */
-	unload_plugin(p);
-
-	/* Load */
-	return load_plugin(file);
-}
-
 /* Remove all callbacks associated with plugin handle */
 static void plugin_remove_callbacks(GModule *handle)
 {