Mercurial > pidgin.yaz
diff libpurple/account.c @ 30149:b983db2b01f5
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Fixes #11656
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 16 Apr 2010 07:35:11 +0000 |
parents | 4d0ccbc905aa |
children | 2a436e0ce977 |
line wrap: on
line diff
--- a/libpurple/account.c Fri Apr 16 01:59:16 2010 +0000 +++ b/libpurple/account.c Fri Apr 16 07:35:11 2010 +0000 @@ -1709,6 +1709,14 @@ } void +purple_account_set_privacy_type(PurpleAccount *account, PurplePrivacyType privacy_type) +{ + g_return_if_fail(account != NULL); + + account->perm_deny = privacy_type; +} + +void purple_account_set_status_types(PurpleAccount *account, GList *status_types) { g_return_if_fail(account != NULL); @@ -2105,6 +2113,14 @@ return account->proxy_info; } +PurplePrivacyType +purple_account_get_privacy_type(const PurpleAccount *account) +{ + g_return_val_if_fail(account != NULL, PURPLE_PRIVACY_ALLOW_ALL); + + return account->perm_deny; +} + PurpleStatus * purple_account_get_active_status(const PurpleAccount *account) {