Mercurial > pidgin.yaz
comparison src/plugin.c @ 10450:577fdf4110fc
[gaim-migrate @ 11715]
Alternate solution to the problem Andrew Wellington attempted to fix in
sf patch #844426, "Protocol plugins not loaded if GAIM_PLUGINS is
disabled"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 30 Dec 2004 06:26:53 +0000 |
parents | 6feef0a9098a |
children | 61ef9a964574 |
comparison
equal
deleted
inserted
replaced
10449:0349cb9aa5a4 | 10450:577fdf4110fc |
---|---|
818 gaim_plugin_destroy(plugins->data); | 818 gaim_plugin_destroy(plugins->data); |
819 | 819 |
820 #endif /* GAIM_PLUGINS */ | 820 #endif /* GAIM_PLUGINS */ |
821 } | 821 } |
822 | 822 |
823 /* TODO: Change this to accept a GList* */ | |
824 void | 823 void |
825 gaim_plugins_load_saved(const char *key) | 824 gaim_plugins_load_saved(const char *key) |
826 { | 825 { |
827 #ifdef GAIM_PLUGINS | 826 #ifdef GAIM_PLUGINS |
828 GList *f, *files; | 827 GList *f, *files; |
965 } | 964 } |
966 | 965 |
967 if (probe_cb != NULL) | 966 if (probe_cb != NULL) |
968 probe_cb(probe_cb_data); | 967 probe_cb(probe_cb_data); |
969 | 968 |
969 #else /* GAIM_PLUGINS */ | |
970 /* We just need to populate the protocol_plugins list with all the PRPLs */ | |
971 GList *cur; | |
972 GaimPlugin *plugin; | |
973 | |
974 for (cur = plugins; cur != NULL; cur = cur->next) | |
975 { | |
976 plugin = cur->data; | |
977 if (plugin->info->type == GAIM_PLUGIN_PROTOCL) | |
978 protocol_plugins = g_list_insert_sorted(protocol_plugins, plugin, | |
979 (GCompareFunc)compare_prpl); | |
980 } | |
981 | |
982 | |
970 #endif /* GAIM_PLUGINS */ | 983 #endif /* GAIM_PLUGINS */ |
971 } | 984 } |
972 | 985 |
973 gboolean | 986 gboolean |
974 gaim_plugin_register(GaimPlugin *plugin) | 987 gaim_plugin_register(GaimPlugin *plugin) |