pidgin: 485ca7df: IRC: Use file-transfer accessor function...

andrew.victor at mxit.com andrew.victor at mxit.com
Sun Oct 30 12:20:46 EDT 2011


----------------------------------------------------------------------
Revision: 485ca7dffac7c2a3a2d05aaf9ca21a826cbc6ef0
Parent:   722d70e7ae12a70fd61c84768906ef433d6b5fab
Author:   andrew.victor at mxit.com
Date:     10/30/11 11:47:29
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/485ca7dffac7c2a3a2d05aaf9ca21a826cbc6ef0

Changelog: 

IRC: Use file-transfer accessor function.
s

Changes against parent 722d70e7ae12a70fd61c84768906ef433d6b5fab

  patched  libpurple/protocols/irc/dcc_send.c

-------------- next part --------------
============================================================
--- libpurple/protocols/irc/dcc_send.c	48994e5b9ee133934a869aab5a91eea53630e569
+++ libpurple/protocols/irc/dcc_send.c	69632df896d2f68e56e0712b1fef6293b20348fa
@@ -258,8 +258,8 @@ static void irc_dccsend_send_connected(g
 		return;
 	}
 
-	purple_input_remove(xfer->watcher);
-	xfer->watcher = 0;
+	purple_input_remove(purple_xfer_get_watcher(xfer));
+	purple_xfer_set_watcher(xfer, 0);
 	close(xd->fd);
 	xd->fd = -1;
 
@@ -313,8 +313,8 @@ irc_dccsend_network_listen_cb(int sock, 
 	port = purple_network_get_port_from_fd(sock);
 	purple_debug_misc("irc", "port is %hu\n", port);
 	/* Monitor the listening socket */
-	xfer->watcher = purple_input_add(sock, PURPLE_INPUT_READ,
-	                                 irc_dccsend_send_connected, xfer);
+	purple_xfer_set_watcher(xfer, purple_input_add(sock, PURPLE_INPUT_READ,
+	                                 irc_dccsend_send_connected, xfer));
 
 	/* Send the intended recipient the DCC request */
 	arg[0] = purple_xfer_get_remote_user(xfer);


More information about the Commits mailing list