static void usbredir_configuration_status(void *priv, uint32_t id,

    struct usb_redir_configuration_status_header *config_status)

{

    USBRedirDevice *dev = priv;

    AsyncURB *aurb;

    int len = 0;



    DPRINTF("set config status %d config %d id %u\n", config_status->status,

            config_status->configuration, id);



    aurb = async_find(dev, id);

    if (!aurb) {

        return;

    }

    if (aurb->packet) {

        if (aurb->get) {

            dev->dev.data_buf[0] = config_status->configuration;

            len = 1;

        }

        aurb->packet->len =

            usbredir_handle_status(dev, config_status->status, len);

        usb_generic_async_ctrl_complete(&dev->dev, aurb->packet);

    }

    async_free(dev, aurb);

}

static void usbredir_configuration_status(void *priv, uint32_t id,

    struct usb_redir_configuration_status_header *config_status)

{

    USBRedirDevice *dev = priv;

    AsyncURB *aurb;

    int len = 0;



    DPRINTF("set config status %d config %d id %u\n", config_status->status,

            config_status->configuration, id);



    aurb = async_find(dev, id);

    if (!aurb) {

        return;

    }

    if (aurb->packet) {

        if (aurb->get) {

            dev->dev.data_buf[0] = config_status->configuration;

            len = 1;

        }

        aurb->packet->len =

            usbredir_handle_status(dev, config_status->status, len);

        usb_generic_async_ctrl_complete(&dev->dev, aurb->packet);

    }

    async_free(dev, aurb);

}

        aurb->packet->len =         aurb->packet->len =
static void FUNC_0(void *VAR_0, uint32_t VAR_1,

    struct usb_redir_configuration_status_header *VAR_2)

{

    USBRedirDevice *dev = VAR_0;

    AsyncURB *aurb;

    int VAR_3 = 0;



    DPRINTF("set config status %d config %d VAR_1 %u\n", VAR_2->status,

            VAR_2->configuration, VAR_1);



    aurb = async_find(dev, VAR_1);

    if (!aurb) {

        return;

    }

    if (aurb->packet) {

        if (aurb->get) {

            dev->dev.data_buf[0] = VAR_2->configuration;

            VAR_3 = 1;

        }

        aurb->packet->VAR_3 =

            usbredir_handle_status(dev, VAR_2->status, VAR_3);

        usb_generic_async_ctrl_complete(&dev->dev, aurb->packet);

    }

    async_free(dev, aurb);

}

static void FUNC_0(void *VAR_0, uint32_t VAR_1,
struct usb_redir_configuration_status_header *VAR_2)
{ USBRedirDevice *dev = VAR_0; AsyncURB *aurb; int VAR_3 = 0; DPRINTF("set config status %d config %d VAR_1 %u\n", VAR_2->status,
VAR_2->configuration, VAR_1); aurb = async_find(dev, VAR_1); if (!aurb) { return; } if (aurb->packet) { if (aurb->get) { dev->dev.data_buf[0] = VAR_2->configuration; VAR_3 = 1; } aurb->packet->VAR_3 =
usbredir_handle_status(dev, VAR_2->status, VAR_3); usb_generic_async_ctrl_complete(&dev->dev, aurb->packet); } async_free(dev, aurb); }