pidgin: 5ccbe7e5: Add getter and setter for account->perm_...
markdoliner at pidgin.im
markdoliner at pidgin.im
Fri Apr 16 03:41:33 EDT 2010
-----------------------------------------------------------------
Revision: 5ccbe7e5a7ed60f69ca10decf2252de3f334f537
Ancestor: 16e3534d66c6f48b22fda1a9decd929533d7b68e
Author: markdoliner at pidgin.im
Date: 2010-04-16T07:35:11
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5ccbe7e5a7ed60f69ca10decf2252de3f334f537
Modified files:
COPYRIGHT ChangeLog.API libpurple/account.c
libpurple/account.h
ChangeLog:
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Fixes #11656
-------------- next part --------------
============================================================
--- COPYRIGHT fea48277ec2273255c1b3dde92b72e7240382dd2
+++ COPYRIGHT aea1175cd30cad38bd50a9cced562c0c6ba3e466
@@ -530,6 +530,7 @@ Andrew Whewell
Zac West
Daniel Westermann-Clark
Andrew Whewell
+Stephen Whitmore
Simon Wilkinson
Dan Willemsen
Justin Williams (Jaywalker)
============================================================
--- ChangeLog.API 0f5f0089ca95e07b311d9eef31188f0d40027843
+++ ChangeLog.API f72ad9f1b631b3f9f4237aff66778968bf9e5b95
@@ -8,6 +8,8 @@ version 2.7.0 (??/??/????):
* account-signed-off
* account-connection-error
* purple_account_get_name_for_display
+ * purple_account_get_privacy_type
+ * purple_account_set_privacy_type
* purple_buddy_get_media_caps
* purple_buddy_set_media_caps
* purple_contact_get_group
============================================================
--- libpurple/account.c 0599960d2855dbaf4b6ad3b37bc030662591d222
+++ libpurple/account.c 071f041650e4ad0822440b693708a1944e584d02
@@ -1709,6 +1709,14 @@ void
}
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 @@ purple_account_get_proxy_info(const Purp
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)
{
============================================================
--- libpurple/account.h c9d99fc93e46a046438ffed828a5033f02923fbd
+++ libpurple/account.h 81a9277dc59b842bb4bad7279de4c6a4adc77444
@@ -414,6 +414,14 @@ void purple_account_set_proxy_info(Purpl
void purple_account_set_proxy_info(PurpleAccount *account, PurpleProxyInfo *info);
/**
+ * Sets the account's privacy type.
+ *
+ * @param account The account.
+ * @param privacy_type The privacy type.
+ */
+void purple_account_set_privacy_type(PurpleAccount *account, PurplePrivacyType privacy_type);
+
+/**
* Sets the account's status types.
*
* @param account The account.
@@ -683,6 +691,15 @@ PurpleProxyInfo *purple_account_get_prox
PurpleProxyInfo *purple_account_get_proxy_info(const PurpleAccount *account);
/**
+ * Returns the account's privacy type.
+ *
+ * @param account The account.
+ *
+ * @return The privacy type.
+ */
+PurplePrivacyType purple_account_get_privacy_type(const PurpleAccount *account);
+
+/**
* Returns the active status for this account. This looks through
* the PurplePresence associated with this account and returns the
* PurpleStatus that has its active flag set to "TRUE." There can be
More information about the Commits
mailing list