diff libpurple/ft.c @ 32427: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.c	Fri Aug 26 19:33:50 2011 +0000
+++ b/libpurple/ft.c	Fri Aug 26 19:55:34 2011 +0000
@@ -1717,6 +1717,21 @@
 	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
  **************************************************************************/