comparison libpurple/protocols/gg/gg.c @ 24292:8282911d5e17

Build everything with the *_DISABLE_DEPRECATED flags set. This allows us to detect when we're still using deprecated functions internally (and by extension, when we've deprecated something we shouldn't have). In the course of developing this changeset, I fixed a few such cases. Given that the plan is to switch from PURPLE_HIDE_STRUCTS to PURPLE_DISABLE_DEPRECATED as each struct is fully dealt with, this will also ensure we have no regressions on the struct hiding work. Deprecated functions are still available to the respective .c file, to avoid missing prototype errors. Also, Perl and DBus undef the *_DISABLE_DEPRECATED defines as appropriate so that deprecated functions will still be exported to Perl plugins and via DBus. (Otherwise, we'd be breaking backwards compatibility.)
author Richard Laager <rlaager@wiktel.com>
date Thu, 30 Oct 2008 22:40:49 +0000
parents 4b920b9ea9ca
children 5ace6c024230 0320b4a33432 8b7ae3775a0b bcad7dc4b453
comparison
equal deleted inserted replaced
24291:f52b94f3b6ca 24292:8282911d5e17
419 * new username and etc, we need to somehow have it refresh at this 419 * new username and etc, we need to somehow have it refresh at this
420 * point 420 * point
421 */ 421 */
422 422
423 /* Need to disconnect or actually log in. For now, we disconnect. */ 423 /* Need to disconnect or actually log in. For now, we disconnect. */
424 purple_connection_destroy(gc); 424 purple_account_disconnect(account);
425 425
426 exit_err: 426 exit_err:
427 if(account->registration_cb) 427 if(account->registration_cb)
428 (account->registration_cb)(account, FALSE, account->registration_cb_user_data); 428 (account->registration_cb)(account, FALSE, account->registration_cb_user_data);
429 429
444 PurpleRequestFields *fields) 444 PurpleRequestFields *fields)
445 { 445 {
446 GGPInfo *info = gc->proto_data; 446 GGPInfo *info = gc->proto_data;
447 GGPToken *token = info->token; 447 GGPToken *token = info->token;
448 448
449 purple_connection_destroy(gc); 449 purple_account_disconnect(gc->account);
450 450
451 g_free(token->id); 451 g_free(token->id);
452 g_free(token->data); 452 g_free(token->data);
453 g_free(token); 453 g_free(token);
454 454