adium 4313:59d17f720c64: Restore some previous SPI used by some ...
commits at adium.im
commits at adium.im
Tue Nov 22 05:10:48 UTC 2011
details: http://hg.adium.im/adium/rev/59d17f720c64
revision: 4313:59d17f720c64
branch: (none)
author: Stephen Holt <sholt at adium.im>
date: Mon Nov 21 21:10:27 2011 -0800
Restore some previous SPI used by some protocol plugins by making some of these purple callbacks visible outside our adapter again. Fixes a crash on launch with the Skype plugin. Fixes #15590.
While technically, we don't support 3rd party plugins, this is rather frequent and a mostly harmless fix.
diffs (60 lines):
diff -r 706d19b3449f -r 59d17f720c64 Plugins/Purple Service/adiumPurpleEventloop.m
--- a/Plugins/Purple Service/adiumPurpleEventloop.m Sun Nov 20 22:17:12 2011 +0100
+++ b/Plugins/Purple Service/adiumPurpleEventloop.m Mon Nov 21 21:10:27 2011 -0800
@@ -57,7 +57,7 @@
CFDictionaryRemoveValue(sourceInfoDict(), (void *)tag);
}
-static gboolean adium_source_remove(guint tag) {
+gboolean adium_source_remove(guint tag) {
dispatch_source_t src = sourceForTag(tag);
if (!src) {
@@ -77,14 +77,14 @@
}
//Like g_source_remove, return TRUE if successful, FALSE if not
-static gboolean adium_timeout_remove(guint tag) {
+gboolean adium_timeout_remove(guint tag) {
return adium_source_remove(tag);
}
/* Extra function to generalize adium_timeout_add and adium_timeout_add_seconds,
* making the permitted leeway explicit.
*/
-static guint addTimer(uint64_t interval, uint64_t leeway, GSourceFunc function, gpointer data)
+guint addTimer(uint64_t interval, uint64_t leeway, GSourceFunc function, gpointer data)
{
dispatch_source_t src;
guint tag;
@@ -117,18 +117,18 @@
}
// Add a timer in miliseconds
-static guint adium_timeout_add(guint interval, GSourceFunc function, gpointer data)
+guint adium_timeout_add(guint interval, GSourceFunc function, gpointer data)
{
return addTimer(((uint64_t)interval) * NSEC_PER_MSEC, NSEC_PER_USEC, function, data);
}
// Add a timer in seconds (allowing more leeway, therefore allowing the OS to group events and save power)
-static guint adium_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
+guint adium_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
{
return addTimer(((uint64_t)interval) * NSEC_PER_SEC, NSEC_PER_SEC, function, data);
}
-static guint adium_input_add(gint fd, PurpleInputCondition condition,
+guint adium_input_add(gint fd, PurpleInputCondition condition,
PurpleInputFunction func, gpointer user_data)
{
if (fd < 0) {
@@ -163,7 +163,7 @@
return tag;
}
-static int adium_input_get_error(int fd, int *error)
+int adium_input_get_error(int fd, int *error)
{
int ret;
socklen_t len;
More information about the commits
mailing list