libpurple/protocols/msn/transaction.h

changeset 28649
95d25c1e195d
parent 24031
f9c3efb8afa6
child 29305
202cb72ed5b0
--- a/libpurple/protocols/msn/transaction.h	Fri Oct 09 17:33:16 2009 +0000
+++ b/libpurple/protocols/msn/transaction.h	Fri Oct 09 18:01:51 2009 +0000
@@ -48,6 +48,8 @@
 	guint timer;
 
 	void *data; /**< The data to be used on the different callbacks. */
+	GDestroyNotify data_free;  /**< The function to free 'data', or @c NULL */
+
 	GHashTable *callbacks;
 	gboolean has_custom_callbacks;
 	MsnErrorCb error_cb;
@@ -71,6 +73,7 @@
 void msn_transaction_set_payload(MsnTransaction *trans,
 								 const char *payload, int payload_len);
 void msn_transaction_set_data(MsnTransaction *trans, void *data);
+void msn_transaction_set_data_free(MsnTransaction *trans, GDestroyNotify fn);
 void msn_transaction_add_cb(MsnTransaction *trans, char *answer,
 							MsnTransCb cb);
 void msn_transaction_set_error_cb(MsnTransaction *trans, MsnErrorCb cb);

mercurial