static int virtio_gpu_ui_info(void *opaque, uint32_t idx, QemuUIInfo *info)

{

    VirtIOGPU *g = opaque;



    if (idx > g->conf.max_outputs) {

        return -1;

    }



    g->req_state[idx].x = info->xoff;

    g->req_state[idx].y = info->yoff;

    g->req_state[idx].width = info->width;

    g->req_state[idx].height = info->height;



    if (info->width && info->height) {

        g->enabled_output_bitmask |= (1 << idx);

    } else {

        g->enabled_output_bitmask &= ~(1 << idx);

    }



    /* send event to guest */

    virtio_gpu_notify_event(g, VIRTIO_GPU_EVENT_DISPLAY);

    return 0;

}

static int virtio_gpu_ui_info(void *opaque, uint32_t idx, QemuUIInfo *info)

{

    VirtIOGPU *g = opaque;



    if (idx > g->conf.max_outputs) {

        return -1;

    }



    g->req_state[idx].x = info->xoff;

    g->req_state[idx].y = info->yoff;

    g->req_state[idx].width = info->width;

    g->req_state[idx].height = info->height;



    if (info->width && info->height) {

        g->enabled_output_bitmask |= (1 << idx);

    } else {

        g->enabled_output_bitmask &= ~(1 << idx);

    }



    

    virtio_gpu_notify_event(g, VIRTIO_GPU_EVENT_DISPLAY);

    return 0;

}

    if (idx > g->conf.max_outputs) {
static int FUNC_0(void *VAR_0, uint32_t VAR_1, QemuUIInfo *VAR_2)

{

    VirtIOGPU *g = VAR_0;



    if (VAR_1 > g->conf.max_outputs) {

        return -1;

    }



    g->req_state[VAR_1].x = VAR_2->xoff;

    g->req_state[VAR_1].y = VAR_2->yoff;

    g->req_state[VAR_1].width = VAR_2->width;

    g->req_state[VAR_1].height = VAR_2->height;



    if (VAR_2->width && VAR_2->height) {

        g->enabled_output_bitmask |= (1 << VAR_1);

    } else {

        g->enabled_output_bitmask &= ~(1 << VAR_1);

    }



    

    virtio_gpu_notify_event(g, VIRTIO_GPU_EVENT_DISPLAY);

    return 0;

}

static int FUNC_0(void *VAR_0, uint32_t VAR_1, QemuUIInfo *VAR_2)
{ VirtIOGPU *g = VAR_0; if (VAR_1 > g->conf.max_outputs) { return -1; } g->req_state[VAR_1].x = VAR_2->xoff; g->req_state[VAR_1].y = VAR_2->yoff; g->req_state[VAR_1].width = VAR_2->width; g->req_state[VAR_1].height = VAR_2->height; if (VAR_2->width && VAR_2->height) { g->enabled_output_bitmask |= (1 << VAR_1); } else { g->enabled_output_bitmask &= ~(1 << VAR_1); } virtio_gpu_notify_event(g, VIRTIO_GPU_EVENT_DISPLAY); return 0; }