From bccb195300c56f51bc174fb8e50b0e62ff74e370 Mon Sep 17 00:00:00 2001 From: Eion Robb Date: Tue, 18 Aug 2015 19:10:28 +1200 Subject: Skypeweb : Try giving compat back to statically compiled plugins, eg for Adium. See issue #330 --- skypeweb/libskypeweb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/skypeweb/libskypeweb.c b/skypeweb/libskypeweb.c index d7776eb..72ae8be 100644 --- a/skypeweb/libskypeweb.c +++ b/skypeweb/libskypeweb.c @@ -675,8 +675,8 @@ PurpleConnection *pc #endif #if !PURPLE_VERSION_CHECK(3, 0, 0) -G_MODULE_EXPORT gboolean -purple_init_plugin(PurplePlugin *plugin) +static void +plugin_init(PurplePlugin *plugin) { PurplePluginInfo *info = g_new0(PurplePluginInfo, 1); PurplePluginProtocolInfo *prpl_info = g_new0(PurplePluginProtocolInfo, 1); @@ -853,7 +853,6 @@ skypeweb_protocol_roomlist_iface_init(PurpleProtocolRoomlistIface *prpl_info) #endif plugin->info = info; - return purple_plugin_register(plugin); #endif } @@ -903,5 +902,9 @@ plugin_query(GError **error) PURPLE_PLUGIN_INIT(skypeweb, plugin_query, plugin_load, plugin_unload); +#else + +static PurplePluginInfo aLovelyBunchOfCoconuts; +PURPLE_INIT_PLUGIN(skypeweb, plugin_init, aLovelyBunchOfCoconuts); #endif -- cgit v1.2.3