Re: [PATCH spice-gtk v4 07/29] fixup! usb-redir: extend USB backend to support emulated devices

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

 



On Tue, Aug 27, 2019 at 10:22:24AM +0100, Frediano Ziglio wrote:
> Rename wait_disc_ack, confusing "disc"
Acked-by: Victor Toso <victortoso@xxxxxxxxxx>
> ---
>  src/usb-backend.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/src/usb-backend.c b/src/usb-backend.c
> index 9369bf5e..13d24d52 100644
> --- a/src/usb-backend.c
> +++ b/src/usb-backend.c
> @@ -94,7 +94,7 @@ struct _SpiceUsbBackendChannel
>      uint32_t hello_done_parser : 1;
>      uint32_t hello_sent        : 1;
>      uint32_t rejected          : 1;
> -    uint32_t wait_disc_ack     : 1;
> +    uint32_t wait_disconnect_ack : 1;
>      SpiceUsbBackendDevice *attached;
>      SpiceUsbredirChannel  *user_data;
>      SpiceUsbBackend *backend;
> @@ -1004,12 +1004,12 @@ static void usbredir_device_disconnect_ack(void *priv)
>  {
>      SpiceUsbBackendChannel *ch = priv;
>      SPICE_DEBUG("%s ch %p", __FUNCTION__, ch);
> -    if (ch->parser && ch->wait_disc_ack) {
> +    if (ch->parser && ch->wait_disconnect_ack) {
>          ch->parser = NULL;
>          SPICE_DEBUG("%s switch to usbredirhost", __FUNCTION__);
>          ch->usbredirhost = ch->hidden_host;
>      }
> -    ch->wait_disc_ack = 0;
> +    ch->wait_disconnect_ack = 0;
>  }
>  
>  static void usbredir_hello(void *priv,
> @@ -1193,7 +1193,7 @@ static gboolean attach_edev(SpiceUsbBackendChannel *ch,
>          ch->usbredirhost = NULL;
>          ch->parser = ch->hidden_parser;
>      }
> -    ch->wait_disc_ack = 0;
> +    ch->wait_disconnect_ack = 0;
>      ch->attached = dev;
>      dev->attached_to = ch;
>      device_ops(dev->edev)->attach(dev->edev, ch->hidden_parser);
> @@ -1269,9 +1269,9 @@ void spice_usb_backend_channel_detach(SpiceUsbBackendChannel *ch)
>          }
>          usbredirparser_send_device_disconnect(ch->parser);
>          usbredir_write_flush_callback(ch);
> -        ch->wait_disc_ack = usbredirparser_peer_has_cap(ch->parser,
> -                                                        usb_redir_cap_device_disconnect_ack);
> -        if (!ch->wait_disc_ack) {
> +        ch->wait_disconnect_ack =
> +            usbredirparser_peer_has_cap(ch->parser, usb_redir_cap_device_disconnect_ack);
> +        if (!ch->wait_disconnect_ack) {
>              ch->usbredirhost = ch->hidden_host;
>              ch->parser = NULL;
>          }
> -- 
> 2.20.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

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