Mercurial > pidgin
comparison src/prpl.c @ 10447:6feef0a9098a
[gaim-migrate @ 11712]
A few minor improvements and some documentation updates.
Conscious evolution in the back of your mind...
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 29 Dec 2004 21:53:59 +0000 |
parents | eaec201b2688 |
children | 0ad82505bde8 |
comparison
equal
deleted
inserted
replaced
10446:904d03bfccce | 10447:6feef0a9098a |
---|---|
324 | 324 |
325 gaim_presence_set_warning_level(presence, level); | 325 gaim_presence_set_warning_level(presence, level); |
326 } | 326 } |
327 | 327 |
328 void | 328 void |
329 gaim_prpl_set_account_status(GaimAccount *account, GaimStatus *status) | 329 gaim_prpl_change_account_status(GaimAccount *account, |
330 GaimStatus *old_status, GaimStatus *new_status) | |
330 { | 331 { |
331 GaimPlugin *prpl; | 332 GaimPlugin *prpl; |
332 GaimPluginProtocolInfo *prpl_info; | 333 GaimPluginProtocolInfo *prpl_info; |
333 | 334 |
334 g_return_if_fail(account != NULL); | 335 g_return_if_fail(account != NULL); |
335 g_return_if_fail(status != NULL); | 336 g_return_if_fail(old_status != NULL); |
337 g_return_if_fail(new_status != NULL); | |
336 | 338 |
337 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); | 339 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); |
338 | 340 |
339 if (prpl == NULL) | 341 if (prpl == NULL) |
340 return; | 342 return; |
341 | 343 |
342 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); | 344 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); |
343 | 345 |
344 if (prpl_info->set_status != NULL) | 346 if (prpl_info->set_status != NULL) |
345 prpl_info->set_status(account, status); | 347 prpl_info->set_status(account, new_status); |
346 } | 348 } |
347 | 349 |
348 GList * | 350 GList * |
349 gaim_prpl_get_statuses(GaimAccount *account, GaimPresence *presence) | 351 gaim_prpl_get_statuses(GaimAccount *account, GaimPresence *presence) |
350 { | 352 { |
352 GaimPluginProtocolInfo *prpl_info; | 354 GaimPluginProtocolInfo *prpl_info; |
353 GList *statuses = NULL; | 355 GList *statuses = NULL; |
354 GList *l; | 356 GList *l; |
355 GaimStatus *status; | 357 GaimStatus *status; |
356 | 358 |
357 g_return_val_if_fail(account != NULL, NULL); | 359 g_return_val_if_fail(account != NULL, NULL); |
358 g_return_val_if_fail(presence != NULL, NULL); | 360 g_return_val_if_fail(presence != NULL, NULL); |
359 | 361 |
360 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); | 362 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); |
361 | 363 |
362 if (prpl == NULL) | 364 if (prpl == NULL) |