diff libpurple/conversation.h @ 32431:c0a423e7fea4

Add accessor functions purple_conversation_get_ui_data() and purple_conversation_set_ui_data().
author andrew.victor@mxit.com
date Fri, 26 Aug 2011 20:51:39 +0000
parents 4dabe4bdfb29
children e5e81ce9c564
line wrap: on
line diff
--- a/libpurple/conversation.h	Fri Aug 26 20:29:23 2011 +0000
+++ b/libpurple/conversation.h	Fri Aug 26 20:51:39 2011 +0000
@@ -802,6 +802,25 @@
  */
 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);
+
 /*@}*/