--- a/libpurple/protocols/oscar/oscar.c Fri Nov 24 01:36:19 2017 -0600
+++ b/libpurple/protocols/oscar/oscar.c Fri Nov 24 01:47:01 2017 -0600
@@ -5257,7 +5257,7 @@
* allowed to send a file to this user.
-oscar_can_receive_file(PurpleProtocolXferInterface *iface, PurpleConnection *gc, const char *who)
+oscar_can_receive_file(PurpleProtocolXfer *pxfer, PurpleConnection *gc, const char *who) @@ -5286,7 +5286,7 @@
-oscar_new_xfer(PurpleProtocolXferInterface *iface, PurpleConnection *gc, const char *who)
+oscar_new_xfer(PurpleProtocolXfer *pxfer, PurpleConnection *gc, const char *who) @@ -5320,11 +5320,11 @@
* file is to be sent to a special someone.
-oscar_send_file(PurpleProtocolXferInterface *iface, PurpleConnection *gc, const char *who, const char *file)
+oscar_send_file(PurpleProtocolXfer *pxfer, PurpleConnection *gc, const char *who, const char *file) - xfer = oscar_new_xfer(iface, gc, who);
+ xfer = oscar_new_xfer(pxfer, gc, who); purple_xfer_request_accepted(xfer, file);
--- a/libpurple/protocols/oscar/oscarcommon.h Fri Nov 24 01:36:19 2017 -0600
+++ b/libpurple/protocols/oscar/oscarcommon.h Fri Nov 24 01:47:01 2017 -0600
@@ -116,9 +116,9 @@
const char *oscar_normalize(const PurpleAccount *account, const char *str);
void oscar_set_icon(PurpleConnection *gc, PurpleImage *img);
void oscar_remove_group(PurpleConnection *gc, PurpleGroup *group);
-gboolean oscar_can_receive_file(PurpleProtocolXferInterface *iface, PurpleConnection *gc, const char *who);
-void oscar_send_file(PurpleProtocolXferInterface *iface, PurpleConnection *gc, const char *who, const char *file);
-PurpleXfer *oscar_new_xfer(PurpleProtocolXferInterface *iface, PurpleConnection *gc, const char *who);
+gboolean oscar_can_receive_file(PurpleProtocolXfer *xfer, PurpleConnection *gc, const char *who); +void oscar_send_file(PurpleProtocolXfer *xfer, PurpleConnection *gc, const char *who, const char *file); +PurpleXfer *oscar_new_xfer(PurpleProtocolXfer *xfer, PurpleConnection *gc, const char *who); gboolean oscar_offline_message(const PurpleBuddy *buddy);
gssize oscar_get_max_message_size(PurpleConversation *conv);
GList *oscar_get_actions(PurpleConnection *gc);
--- a/libpurple/protocols/sametime/sametime.c Fri Nov 24 01:36:19 2017 -0600
+++ b/libpurple/protocols/sametime/sametime.c Fri Nov 24 01:47:01 2017 -0600
@@ -4941,7 +4941,7 @@
-static gboolean mw_protocol_can_receive_file(PurpleProtocolXferInterface *iface,
+static gboolean mw_protocol_can_receive_file(PurpleProtocolXfer *pxfer, struct mwPurpleProtocolData *pd;
@@ -5031,7 +5031,7 @@
-static PurpleXfer *mw_protocol_new_xfer(PurpleProtocolXferInterface *iface, PurpleConnection *gc, const char *who) {
+static PurpleXfer *mw_protocol_new_xfer(PurpleProtocolXfer *pxfer, PurpleConnection *gc, const char *who) { @@ -5047,11 +5047,11 @@
-static void mw_protocol_send_file(PurpleProtocolXferInterface *iface,
+static void mw_protocol_send_file(PurpleProtocolXfer *pxfer, const char *who, const char *file) {
- PurpleXfer *xfer = mw_protocol_new_xfer(iface, gc, who);
+ PurpleXfer *xfer = mw_protocol_new_xfer(pxfer, gc, who); DEBUG_INFO("file != NULL\n");