Re: [spice-gtk v2 00/16] separate SpiceFileTransferTask logic from channel-main

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, May 23, 2016 at 01:50:37PM +0200, Victor Toso wrote:
> The idea is mainly to have a design improvement over the current file-transfer
> logic by trying to detach it from channel-main and the agent logic plus a few
> simple tests.
>
> One interesting change is about creating a FileTransfereOperation per
> drag-and-drop operation in channel-main, which removes the progress_callback
> logic from SpiceFileTransferTask as we don't want to call progress_callback on
> SpiceFileTransferTask but rather on channel-main;
>
> We are also calling the application callback for each finalized
> SpiceFileTransferTask which means that it could be several callback calls per
> operation. I suggested to fix that on patch 07.
>
> Let me know your thoughts about this.
>   Thanks

I'll try to keep a rebased branch at [0] :-)

[0] https://cgit.freedesktop.org/~victortoso/spice-gtk/?h=move-xfer

>
> Victor Toso (16):
>   file-xfer: make handle_status agnostic of channel-main (Acked by Pavel)
>   file-xfer: introduce flush_callback and flush_done
>   file-xfer: introduce create_tasks and start_task
>   file-xfer: introduce file-info signal
>   file-xfer: inform agent of errors only when task finished
>   file-xfer: a FileTransferOperation per transfer call
>   file-xfer: call user callback once per operation
>   file-xfer: move to spice-file-transfer-task.c
>   tests: file-transfer include simple tests
>   tests: fix build with smartcard enabled
>   channel: avoid crash on CHANNEL_DEBUG due NULL channel
>   tests: file-transfer cancel on task start
>   channel: avoid crash on spice_channel_wakupe due NULL channel
>   tests: file-transfer cancel on file-info
>   tests: file-transfer cancel on read file
>   tests: file-transfer agent send error/cancel
> 
>  src/Makefile.am                     |   2 +
>  src/channel-main.c                  | 910 ++++++++++--------------------------
>  src/spice-channel-priv.h            |   4 +-
>  src/spice-channel.c                 |   5 +-
>  src/spice-file-transfer-task-priv.h |  56 +++
>  src/spice-file-transfer-task.c      | 698 +++++++++++++++++++++++++++
>  tests/Makefile.am                   |   3 +
>  tests/file-transfer.c               | 412 ++++++++++++++++
>  8 files changed, 1419 insertions(+), 671 deletions(-)
>  create mode 100644 src/spice-file-transfer-task-priv.h
>  create mode 100644 src/spice-file-transfer-task.c
>  create mode 100644 tests/file-transfer.c
> 
> -- 
> 2.5.5
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]