diff libpurple/ft.h @ 31968:ff051a32e1e8

Added accessor functions purple_xfer_get_ui_data() and purple_xfer_set_ui_data().
author andrew.victor@mxit.com
date Fri, 26 Aug 2011 19:55:34 +0000
parents 5b5fd57ff3ae
children e5e81ce9c564
line wrap: on
line diff
--- a/libpurple/ft.h	Fri Aug 26 19:33:50 2011 +0000
+++ b/libpurple/ft.h	Fri Aug 26 19:55:34 2011 +0000
@@ -758,6 +758,25 @@
  */
 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);
+
 /*@}*/
 
 /**************************************************************************/