pidgin: fa03cadc: Introduce API purple_xfer_get_protocol_d...

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


----------------------------------------------------------------------
Revision: fa03cadccc7b619a5019c6f86a917302e14542f5
Parent:   4cff640f1f3eb80b9c5e2bbd9be45bbdc2788b90
Author:   andrew.victor at mxit.com
Date:     08/26/11 13:59:08
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/fa03cadccc7b619a5019c6f86a917302e14542f5

Changelog: 

Introduce API purple_xfer_get_protocol_data() and purple_xfer_set_protocol_data().


Changes against parent 4cff640f1f3eb80b9c5e2bbd9be45bbdc2788b90

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

-------------- next part --------------
============================================================
--- libpurple/ft.c	54b6b4e5e9a6c2cff6167d246b15cebe94d02a2f
+++ libpurple/ft.c	66c8777ec47420731e9299e0d3f5cccec71d37db
@@ -1701,6 +1701,22 @@ purple_xfer_prepare_thumbnail(PurpleXfer
 	}
 }
 
+void
+purple_xfer_set_protocol_data(PurpleXfer *xfer, void *proto_data)
+{
+	g_return_if_fail(xfer != NULL);
+
+	xfer->data = proto_data;
+}
+
+void *
+purple_xfer_get_protocol_data(PurpleXfer *xfer)
+{
+	g_return_val_if_fail(xfer != NULL, NULL);
+
+	return xfer->data;
+}
+
 /**************************************************************************
  * File Transfer Subsystem API
  **************************************************************************/
============================================================
--- libpurple/ft.h	68c7c633daced2fb3d1981dc4ba98de2a063c4f1
+++ libpurple/ft.h	4a54188b8ef603a29d301a7a30e92c519cbf402c
@@ -737,6 +737,26 @@ void purple_xfer_prepare_thumbnail(Purpl
  */
 void purple_xfer_prepare_thumbnail(PurpleXfer *xfer, const gchar *formats);
 
+/**
+ * Sets the protocol data for a file transfer.
+ *
+ * @param xfer			The file transfer.
+ * @param protol_data	The protocol data to set for the file transfer.
+ *
+ * @since 3.0.0
+ */
+void purple_xfer_set_protocol_data(PurpleXfer *xfer, void *proto_data);
+ 
+/**
+ * Gets the protocol data for a file transfer.
+ *
+ * @param xfer			The file transfer.
+ *
+ * @return The protocol data for the file transfer.
+ *
+ * @since 3.0.0
+ */
+void *purple_xfer_get_protocol_data(PurpleXfer *xfer);
 
 /*@}*/
 
============================================================
--- ChangeLog.API	80803db8a2a8aec07b605d79c417c22f3acce84d
+++ ChangeLog.API	4b19accd878d7c9744380ceaceacf3faac13c046
@@ -15,6 +15,8 @@ version 3.0.0 (??/??/????):
 		* purple_roomlist_room_set_expanded_once
 		* purple_roomlist_set_proto_data
 		* purple_roomlist_set_ui_data
+		* purple_xfer_get_protocol_data
+		* purple_xfer_set_protocol_data
 
 		Changed:
 		* purple_connection_error now takes a PurpleConnectionError


More information about the Commits mailing list