Mercurial > pidgin.yaz
diff src/plugin.c @ 5449:9442e8d0b21d
[gaim-migrate @ 5836]
Decklin Foster writes:
"this makes --enable-static-prpls compile again.
i'm so lazy. it's only been what, well over a week since the new plugin
api broke this? :) i'm not sure if everything here is "correct" but i'm
sure someone can look over it. mainly, because i made _load return TRUE
all the time, for the sake of consistency/completeness i changed the
other applicable functions to do so as well. my feeling is, the only
time these things are going to be called in the static case is from
static_proto_init (since there's no plugin UI or whatever) and therefore
they always "succeed".
oh, yeah, and someone please test it *without* static prpls turned on.
like i said, i'm lazy. :)"
it works for me with no static prpls.
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Mon, 19 May 2003 17:27:03 +0000 |
| parents | 07358c067495 |
| children | bb1e160467b6 |
line wrap: on
line diff
--- a/src/plugin.c Mon May 19 16:00:24 2003 +0000 +++ b/src/plugin.c Mon May 19 17:27:03 2003 +0000 @@ -140,6 +140,8 @@ return NULL; } +#endif /* GAIM_PLUGINS */ + static gint compare_prpl(GaimPlugin *a, GaimPlugin *b) { @@ -150,8 +152,6 @@ ? GAIM_PLUGIN_PROTOCOL_INFO(b)->protocol : -1))); } -#endif /* GAIM_PLUGINS */ - GaimPlugin * gaim_plugin_new(gboolean native, const char *path) { @@ -298,7 +298,7 @@ return TRUE; #else - return FALSE; + return TRUE; #endif /* !GAIM_PLUGINS */ } @@ -383,6 +383,8 @@ unload_cb(plugin, unload_cb_data); return TRUE; +#else + return TRUE; #endif /* GAIM_PLUGINS */ } @@ -401,13 +403,14 @@ return TRUE; #else - return NULL; + return TRUE; #endif /* !GAIM_PLUGINS */ } void gaim_plugin_destroy(GaimPlugin *plugin) { +#ifdef GAIM_PLUGINS g_return_if_fail(plugin != NULL); if (gaim_plugin_is_loaded(plugin)) @@ -468,6 +471,7 @@ if (plugin->error != NULL) g_free(plugin->error); g_free(plugin); +#endif /* !GAIM_PLUGINS */ } gboolean @@ -568,7 +572,6 @@ gboolean gaim_plugin_register(GaimPlugin *plugin) { -#ifdef GAIM_PLUGINS g_return_val_if_fail(plugin != NULL, FALSE); if (g_list_find(plugins, plugin)) @@ -621,9 +624,6 @@ plugins = g_list_append(plugins, plugin); return TRUE; -#else - return FALSE; -#endif /* !GAIM_PLUGINS */ } gboolean
