comparison libpurple/account.c @ 17593:759cd72bd2ff

Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
author Andreas Monitzer <pidgin@monitzer.com>
date Mon, 18 Jun 2007 12:37:29 +0000
parents 84638e3af1bc
children ca0b86f3dbd2
comparison
equal deleted inserted replaced
17592:f2686bec13c0 17593:759cd72bd2ff
2151 return FALSE; 2151 return FALSE;
2152 return prpl_info->offline_message(buddy); 2152 return prpl_info->offline_message(buddy);
2153 } 2153 }
2154 2154
2155 void 2155 void
2156 purple_account_set_tune(PurpleAccount *account, const PurpleTuneInfo *info) {
2157 PurplePluginProtocolInfo *prpl_info = NULL;
2158 PurpleConnection *gc = purple_account_get_connection(account);
2159
2160 if (gc != NULL && gc->prpl != NULL)
2161 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl);
2162
2163 if (prpl_info && prpl_info->publish_tune)
2164 prpl_info->publish_tune(gc, info);
2165 }
2166
2167 void
2168 purple_accounts_add(PurpleAccount *account) 2156 purple_accounts_add(PurpleAccount *account)
2169 { 2157 {
2170 g_return_if_fail(account != NULL); 2158 g_return_if_fail(account != NULL);
2171 2159
2172 if (g_list_find(accounts, account) != NULL) 2160 if (g_list_find(accounts, account) != NULL)