diff src/plugin.c @ 5573:5e7de337a053

[gaim-migrate @ 5976] Account saving and loading _mostly_ works. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 30 May 2003 23:57:11 +0000
parents cce2d7868c78
children 0bdfa28c678e
line wrap: on
line diff
--- a/src/plugin.c	Fri May 30 23:05:01 2003 +0000
+++ b/src/plugin.c	Fri May 30 23:57:11 2003 +0000
@@ -66,6 +66,7 @@
 static GList *loaded_plugins = NULL;
 static GList *plugins = NULL;
 static GList *plugin_loaders = NULL;
+static GList *protocol_plugins = NULL;
 
 static size_t search_path_count = 0;
 static char **search_paths = NULL;
@@ -618,8 +619,8 @@
 			return FALSE;
 		}
 
-		protocols = g_slist_insert_sorted(protocols, plugin,
-										  (GCompareFunc)compare_prpl);
+		protocol_plugins = g_list_insert_sorted(protocol_plugins, plugin,
+												(GCompareFunc)compare_prpl);
 	}
 
 	plugins = g_list_append(plugins, plugin);
@@ -744,6 +745,12 @@
 }
 
 GList *
+gaim_plugins_get_protocols(void)
+{
+	return protocol_plugins;
+}
+
+GList *
 gaim_plugins_get_all(void)
 {
 	return plugins;