Move (_)purple_conversations_update_cache to internal.h
--- a/libpurple/conversation.c Wed Jan 29 13:41:33 2014 +0100
+++ b/libpurple/conversation.c Thu Jan 30 02:52:18 2014 +0530
@@ -335,7 +335,7 @@
if (account == purple_conversation_get_account(conv))
- purple_conversations_update_cache(conv, NULL, account);
+ _purple_conversations_update_cache(conv, NULL, account); g_object_notify_by_pspec(G_OBJECT(conv), properties[PROP_ACCOUNT]);
@@ -428,7 +428,7 @@
g_return_if_fail(priv != NULL);
- purple_conversations_update_cache(conv, name, NULL);
+ _purple_conversations_update_cache(conv, name, NULL); priv->name = g_strdup(name);
--- a/libpurple/conversations.c Wed Jan 29 13:41:33 2014 +0100
+++ b/libpurple/conversations.c Thu Jan 30 02:52:18 2014 +0530
@@ -115,7 +115,7 @@
-purple_conversations_update_cache(PurpleConversation *conv, const char *name,
+_purple_conversations_update_cache(PurpleConversation *conv, const char *name, PurpleAccount *old_account;
--- a/libpurple/conversations.h Wed Jan 29 13:41:33 2014 +0100
+++ b/libpurple/conversations.h Thu Jan 30 02:52:18 2014 +0530
@@ -52,18 +52,6 @@
void purple_conversations_remove(PurpleConversation *conv);
- * Updates the conversation cache to use a new conversation name and/or
- * account. This function only updates the conversation cache. It is the
- * caller's responsibility to actually update the conversation.
- * @param conv The conversation.
- * @param name The new name. If no change, use @c NULL.
- * @param account The new account. If no change, use @c NULL.
-void purple_conversations_update_cache(PurpleConversation *conv,
- const char *name, PurpleAccount *account);
* Returns a list of all conversations.
* This list includes both IMs and chats.
--- a/libpurple/internal.h Wed Jan 29 13:41:33 2014 +0100
+++ b/libpurple/internal.h Thu Jan 30 02:52:18 2014 +0530
@@ -264,6 +264,21 @@
PurpleChatConversation *chat);
+ * Updates the conversation cache to use a new conversation name and/or + * account. This function only updates the conversation cache. It is the + * caller's responsibility to actually update the conversation. + * @note This function should only be called by purple_conversation_set_name() + * and purple_conversation_set_account() in conversation.c. + * @param conv The conversation. + * @param name The new name. If no change, use @c NULL. + * @param account The new account. If no change, use @c NULL. +void _purple_conversations_update_cache(PurpleConversation *conv, + const char *name, PurpleAccount *account); * Returns the primitive scores array from status.c.
* @note This function should only be called by
--- a/libpurple/plugins/perl/common/Conversation.xs Wed Jan 29 13:41:33 2014 +0100
+++ b/libpurple/plugins/perl/common/Conversation.xs Thu Jan 30 02:52:18 2014 +0530
@@ -90,12 +90,6 @@
purple_conversations_remove(conv)
Purple::Conversation conv
-purple_conversations_update_cache(conv, name, account)
- Purple::Conversation conv
- Purple::Account account
purple_conversations_get_handle()