/pidgin/main: 7c775624f964: Move (_)purple_account_to_xmlnode to...
Ankit Vani
a at nevitus.org
Mon Jan 20 17:13:14 EST 2014
Changeset: 7c775624f964f4899d79391d99d8f8e30dd6a434
Author: Ankit Vani <a at nevitus.org>
Date: 2014-01-18 04:23 +0530
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/7c775624f964
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
@@ -2735,7 +2735,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
@@ -171,6 +171,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