pidgin: 7e210cba: Add accessor functions purple_conversati...

andrew.victor at mxit.com andrew.victor at mxit.com
Fri Aug 26 17:30:54 EDT 2011


----------------------------------------------------------------------
Revision: 7e210cba3741f80537f99775f9b0676666fcf41c
Parent:   4bcc80fdf6dc377830573c618a473c881e2adbb9
Author:   andrew.victor at mxit.com
Date:     08/26/11 16:51:39
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7e210cba3741f80537f99775f9b0676666fcf41c

Changelog: 

Add accessor functions purple_conversation_get_ui_data() and purple_conversation_set_ui_data().


Changes against parent 4bcc80fdf6dc377830573c618a473c881e2adbb9

  patched  ChangeLog.API
  patched  libpurple/conversation.c
  patched  libpurple/conversation.h

-------------- next part --------------
============================================================
--- libpurple/conversation.c	19aac10ceebae1ee28788b6f0c02bcfcff0c8803
+++ libpurple/conversation.c	67bff8b2ed192638681008874c3216113edb8ef7
@@ -2323,6 +2323,21 @@ time_t purple_conversation_message_get_t
 	return msg->when;
 }
 
+void purple_conversation_set_ui_data(PurpleConversation *conv, gpointer ui_data)
+{
+	g_return_if_fail(conv != NULL);
+
+	conv->ui_data = ui_data;
+}
+
+gpointer purple_conversation_get_ui_data(PurpleConversation *conv)
+{
+	g_return_val_if_fail(conv != NULL, NULL);
+
+	return conv->ui_data;
+}
+
+
 gboolean
 purple_conversation_do_command(PurpleConversation *conv, const gchar *cmdline,
 				const gchar *markup, gchar **error)
============================================================
--- libpurple/conversation.h	ee3ba57ce65309287c60fa7d3f0d504418cfe2e7
+++ libpurple/conversation.h	bcfd74e887651f1e339c9e3ca8dc5b5a7e60ae8c
@@ -802,6 +802,25 @@ time_t purple_conversation_message_get_t
  */
 time_t purple_conversation_message_get_timestamp(PurpleConvMessage *msg);
 
+/**
+ * Set the UI data associated with this conversation.
+ *
+ * @param conv			The conversation.
+ * @param ui_data		A pointer to associate with this conversation.
+ */
+void purple_conversation_set_ui_data(PurpleConversation *conv, gpointer ui_data);
+
+/**
+ * Get the UI data associated with this conversation.
+ *
+ * @param conv			The conversation.
+ *
+ * @return The UI data associated with this conversation.  This is a
+ *         convenience field provided to the UIs--it is not
+ *         used by the libpurple core.
+ */
+gpointer purple_conversation_get_ui_data(PurpleConversation *conv);
+
 /*@}*/
 
 
============================================================
--- ChangeLog.API	0f1ea6273f6d0588810e554aa6cee9ff8c9d787d
+++ ChangeLog.API	95b46571704a3a5aa8d1f18e4a88b4f98c1b6621
@@ -19,6 +19,8 @@ version 3.0.0 (??/??/????):
 		* purple_xfer_set_protocol_data
 		* purple_xfer_get_ui_data
 		* purple_xfer_set_ui_data
+		* purple_conversation_get_ui_data
+		* purple_conversation_set_ui_data
 
 		Changed:
 		* purple_connection_error now takes a PurpleConnectionError


More information about the Commits mailing list