/soc/2013/ankitkv/gobjectification: efb7b1e3e36d: Removed purple...

Ankit Vani a at nevitus.org
Sat Jul 13 13:05:46 EDT 2013


Changeset: efb7b1e3e36d0df67e0e5cf7b0bd7f10708b7210
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-07-13 22:30 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/efb7b1e3e36d

Description:

Removed purple_account_set_current_error() from the API. It is to be used internally by accounts.

diffstat:

 libpurple/account.c  |   7 ++++++-
 libpurple/account.h  |  11 -----------
 libpurple/accounts.c |   3 +++
 3 files changed, 9 insertions(+), 12 deletions(-)

diffs (51 lines):

diff --git a/libpurple/account.c b/libpurple/account.c
--- a/libpurple/account.c
+++ b/libpurple/account.c
@@ -135,7 +135,12 @@ enum
 static GObjectClass  *parent_class = NULL;
 static GList         *handles = NULL;
 
-
+void purple_account_set_current_error(PurpleAccount *account,
+		PurpleConnectionErrorInfo *new_err);
+
+/***************
+ * Account API *
+ ***************/
 void
 purple_account_set_register_callback(PurpleAccount *account, PurpleAccountRegistrationCb cb, void *user_data)
 {
diff --git a/libpurple/account.h b/libpurple/account.h
--- a/libpurple/account.h
+++ b/libpurple/account.h
@@ -1132,17 +1132,6 @@ void purple_account_change_password(Purp
 gboolean purple_account_supports_offline_message(PurpleAccount *account, PurpleBuddy *buddy);
 
 /**
- * Sets the error that caused the account to be disconnected.
- * You should not ever need to call this function directly, the error is set
- * by the accouts subsystem. You should only need to retrieve this error.
- *
- * @param account The account whose error should be set.
- * @param new_err The new error.
- */
-void purple_account_set_current_error(PurpleAccount *account,
-									PurpleConnectionErrorInfo *new_err);
-
-/**
  * Get the error that caused the account to be disconnected, or @c NULL if the
  * account is happily connected or disconnected without an error.
  *
diff --git a/libpurple/accounts.c b/libpurple/accounts.c
--- a/libpurple/accounts.c
+++ b/libpurple/accounts.c
@@ -37,6 +37,9 @@ static GList   *accounts = NULL;
 static guint    save_timer = 0;
 static gboolean accounts_loaded = FALSE;
 
+void purple_account_set_current_error(PurpleAccount *account,
+		PurpleConnectionErrorInfo *new_err);
+
 /*********************************************************************
  * Writing to disk                                                   *
  *********************************************************************/



More information about the Commits mailing list