[Spice-devel] [spice-gtk v5 18/23] main: use xfer_task instead of task or self

Victor Toso victortoso at redhat.com
Tue Jul 5 13:07:25 UTC 2016


Another patch to rename variable and keep consistency across
channel-main. Let's avoid task which is common for GTask and self for
non SpiceMainChannel objects

Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
---
 src/channel-main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/channel-main.c b/src/channel-main.c
index 292d1ac..fd45ea1 100644
--- a/src/channel-main.c
+++ b/src/channel-main.c
@@ -1880,20 +1880,20 @@ static void file_xfer_data_flushed_cb(GObject *source_object,
                                       GAsyncResult *res,
                                       gpointer user_data)
 {
-    SpiceFileTransferTask *self = user_data;
+    SpiceFileTransferTask *xfer_task = user_data;
     SpiceMainChannel *channel = (SpiceMainChannel *)source_object;
     GError *error = NULL;
 
     file_xfer_flush_finish(channel, res, &error);
     if (error) {
-        spice_file_transfer_task_completed(self, error);
+        spice_file_transfer_task_completed(xfer_task, error);
         return;
     }
 
-    file_transfer_operation_send_progress(self);
+    file_transfer_operation_send_progress(xfer_task);
 
     /* Read more data */
-    spice_file_transfer_task_read_async(self, file_xfer_read_async_cb, NULL);
+    spice_file_transfer_task_read_async(xfer_task, file_xfer_read_async_cb, NULL);
 }
 
 static void file_xfer_queue_msg_to_agent(SpiceMainChannel *channel,
-- 
2.7.4



More information about the Spice-devel mailing list