Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2015-08-18 10:10:28 +0300
committerEion Robb <eion@robbmob.com>2015-08-18 10:10:28 +0300
commitbccb195300c56f51bc174fb8e50b0e62ff74e370 (patch)
treed19a9203349ef91e879db93616a966e3aa60b419
parentf990671c7cf7de24c19a0b3a4f7988a28f7eca29 (diff)
Skypeweb : Try giving compat back to statically compiled plugins, eg for Adium. See issue #330
-rw-r--r--skypeweb/libskypeweb.c9
1 files 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