/soc/2013/ankitkv/gobjectification: e5fdaa0edfa8: Move (_)purple...

Ankit Vani a at nevitus.org
Fri Jan 17 17:55:31 EST 2014


Changeset: e5fdaa0edfa8eafc7b57c276c23aa124e89e056e
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2014-01-18 04:23 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/e5fdaa0edfa8

Description:

Move (_)purple_account_to_xmlnode to internal.h

diffstat:

 libpurple/account.c  |  2 +-
 libpurple/account.h  |  8 --------
 libpurple/accounts.c |  2 +-
 libpurple/internal.h |  8 ++++++++
 4 files changed, 10 insertions(+), 10 deletions(-)

diffs (60 lines):

diff --git a/libpurple/account.c b/libpurple/account.c
--- a/libpurple/account.c
+++ b/libpurple/account.c
@@ -2698,7 +2698,7 @@ ui_setting_to_xmlnode(gpointer key, gpoi
 }
 
 PurpleXmlNode *
-purple_account_to_xmlnode(PurpleAccount *account)
+_purple_account_to_xmlnode(PurpleAccount *account)
 {
 	PurpleXmlNode *node, *child;
 	const char *tmp;
diff --git a/libpurple/account.h b/libpurple/account.h
--- a/libpurple/account.h
+++ b/libpurple/account.h
@@ -1150,14 +1150,6 @@ const PurpleConnectionErrorInfo *purple_
  */
 void purple_account_clear_current_error(PurpleAccount *account);
 
-/**
- * Get an XML description of an account.
- *
- * @param account  The account
- * @return  The XML description of the account.
- */
-PurpleXmlNode *purple_account_to_xmlnode(PurpleAccount *account);
-
 /*@}*/
 
 G_END_DECLS
diff --git a/libpurple/accounts.c b/libpurple/accounts.c
--- a/libpurple/accounts.c
+++ b/libpurple/accounts.c
@@ -52,7 +52,7 @@ accounts_to_xmlnode(void)
 
 	for (cur = purple_accounts_get_all(); cur != NULL; cur = cur->next)
 	{
-		child = purple_account_to_xmlnode(cur->data);
+		child = _purple_account_to_xmlnode(cur->data);
 		purple_xmlnode_insert_child(node, child);
 	}
 
diff --git a/libpurple/internal.h b/libpurple/internal.h
--- a/libpurple/internal.h
+++ b/libpurple/internal.h
@@ -169,6 +169,14 @@ void _purple_account_set_current_error(P
                                        PurpleConnectionErrorInfo *new_err);
 
 /**
+ * Get an XML description of an account.
+ *
+ * @param account  The account
+ * @return  The XML description of the account.
+ */
+PurpleXmlNode *_purple_account_to_xmlnode(PurpleAccount *account);
+
+/**
  * Returns the last child of a particular node.
  *
  * @param node  The node whose last child is to be retrieved.



More information about the Commits mailing list