void qemu_spice_display_resize(SimpleSpiceDisplay *ssd)

{

    dprint(1, "%s:\n", __FUNCTION__);



    pthread_mutex_lock(&ssd->lock);

    memset(&ssd->dirty, 0, sizeof(ssd->dirty));

    qemu_pf_conv_put(ssd->conv);

    ssd->conv = NULL;

    pthread_mutex_unlock(&ssd->lock);



    qemu_spice_destroy_host_primary(ssd);

    qemu_spice_create_host_primary(ssd);



    pthread_mutex_lock(&ssd->lock);

    memset(&ssd->dirty, 0, sizeof(ssd->dirty));

    ssd->notify++;

    pthread_mutex_unlock(&ssd->lock);

}

void qemu_spice_display_resize(SimpleSpiceDisplay *ssd)

{

    dprint(1, "%s:\n", __FUNCTION__);



    pthread_mutex_lock(&ssd->lock);

    memset(&ssd->dirty, 0, sizeof(ssd->dirty));

    qemu_pf_conv_put(ssd->conv);

    ssd->conv = NULL;

    pthread_mutex_unlock(&ssd->lock);



    qemu_spice_destroy_host_primary(ssd);

    qemu_spice_create_host_primary(ssd);



    pthread_mutex_lock(&ssd->lock);

    memset(&ssd->dirty, 0, sizeof(ssd->dirty));

    ssd->notify++;

    pthread_mutex_unlock(&ssd->lock);

}

void FUNC_0(SimpleSpiceDisplay *VAR_0)

{

    dprint(1, "%s:\n", __FUNCTION__);



    pthread_mutex_lock(&VAR_0->lock);

    memset(&VAR_0->dirty, 0, sizeof(VAR_0->dirty));

    qemu_pf_conv_put(VAR_0->conv);

    VAR_0->conv = NULL;

    pthread_mutex_unlock(&VAR_0->lock);



    qemu_spice_destroy_host_primary(VAR_0);

    qemu_spice_create_host_primary(VAR_0);



    pthread_mutex_lock(&VAR_0->lock);

    memset(&VAR_0->dirty, 0, sizeof(VAR_0->dirty));

    VAR_0->notify++;

    pthread_mutex_unlock(&VAR_0->lock);

}

void FUNC_0(SimpleSpiceDisplay *VAR_0)
{ dprint(1, "%s:\n", __FUNCTION__); pthread_mutex_lock(&VAR_0->lock); memset(&VAR_0->dirty, 0, sizeof(VAR_0->dirty)); qemu_pf_conv_put(VAR_0->conv); VAR_0->conv = NULL; pthread_mutex_unlock(&VAR_0->lock); qemu_spice_destroy_host_primary(VAR_0); qemu_spice_create_host_primary(VAR_0); pthread_mutex_lock(&VAR_0->lock); memset(&VAR_0->dirty, 0, sizeof(VAR_0->dirty)); VAR_0->notify++; pthread_mutex_unlock(&VAR_0->lock); }