pidgin: be80af10: Added accessor functions purple_xfer_get...

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


----------------------------------------------------------------------
Revision: be80af1014db80e1d114af4fb7d7acfa05486bcf
Parent:   2b3a899e8d9c0a3551a68323566a236682a5fcbd
Author:   andrew.victor at mxit.com
Date:     08/26/11 15:55:34
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/be80af1014db80e1d114af4fb7d7acfa05486bcf

Changelog: 

Added accessor functions purple_xfer_get_ui_data() and purple_xfer_set_ui_data().


Changes against parent 2b3a899e8d9c0a3551a68323566a236682a5fcbd

  patched  ChangeLog.API
  patched  libpurple/ft.c
  patched  libpurple/ft.h
  patched  libpurple/roomlist.h

-------------- next part --------------
============================================================
--- libpurple/ft.c	6ccb858e4663022de27e52c7d0dcfd1d3f9af70b
+++ libpurple/ft.c	05716e1db9100a2ac79a3c4a5b915ccf9f11113d
@@ -1717,6 +1717,21 @@ purple_xfer_get_protocol_data(PurpleXfer
 	return xfer->proto_data;
 }
 
+void purple_xfer_set_ui_data(PurpleXfer *xfer, gpointer ui_data)
+{
+	g_return_if_fail(xfer != NULL);
+
+	xfer->ui_data = ui_data;
+}
+
+gpointer purple_xfer_get_ui_data(PurpleXfer *xfer)
+{
+	g_return_val_if_fail(xfer != NULL, NULL);
+
+	return xfer->ui_data;
+}
+
+
 /**************************************************************************
  * File Transfer Subsystem API
  **************************************************************************/
============================================================
--- libpurple/ft.h	c060e8e950b8ae0b01a23c76470d3502da5c5f64
+++ libpurple/ft.h	aa4cf05b3bbaa46c7b0586672ccf1ddfd1832dd1
@@ -758,6 +758,25 @@ gpointer purple_xfer_get_protocol_data(P
  */
 gpointer purple_xfer_get_protocol_data(PurpleXfer *xfer);
 
+/**
+ * Set the UI data associated with this file transfer.
+ *
+ * @param xfer			The file transfer.
+ * @param ui_data		A pointer to associate with this file transfer.
+ */
+void purple_xfer_set_ui_data(PurpleXfer *xfer, gpointer ui_data);
+
+/**
+ * Get the UI data associated with this file transfer.
+ *
+ * @param xfer			The file transfer.
+ *
+ * @return The UI data associated with this file transfer.  This is a
+ *         convenience field provided to the UIs--it is not
+ *         used by the libpurple core.
+ */
+gpointer purple_xfer_get_ui_data(PurpleXfer *xfer);
+
 /*@}*/
 
 /**************************************************************************/
============================================================
--- libpurple/roomlist.h	a0a532452b4c81a8a5e7a2d51439a09cdee788de
+++ libpurple/roomlist.h	a69b2d4a8867d75ae3f2d9eafa763c50b0c4290d
@@ -228,7 +228,7 @@ GList *purple_roomlist_get_fields(Purple
  *
  * @return The protocol data associated with this room list.  This is a
  *         convenience field provided to the protocol plugin--it is not
- *         used the libuprple core.
+ *         used the libpurple core.
  */
 gpointer purple_roomlist_get_proto_data(PurpleRoomlist *list);
 
@@ -247,7 +247,7 @@ void purple_roomlist_set_proto_data(Purp
  *
  * @return The UI data associated with this room list.  This is a
  *         convenience field provided to the UIs--it is not
- *         used by the libuprple core.
+ *         used by the libpurple core.
  */
 gpointer purple_roomlist_get_ui_data(PurpleRoomlist *list);
 
============================================================
--- ChangeLog.API	4b19accd878d7c9744380ceaceacf3faac13c046
+++ ChangeLog.API	0f1ea6273f6d0588810e554aa6cee9ff8c9d787d
@@ -17,6 +17,8 @@ version 3.0.0 (??/??/????):
 		* purple_roomlist_set_ui_data
 		* purple_xfer_get_protocol_data
 		* purple_xfer_set_protocol_data
+		* purple_xfer_get_ui_data
+		* purple_xfer_set_ui_data
 
 		Changed:
 		* purple_connection_error now takes a PurpleConnectionError


More information about the Commits mailing list