static void display_mouse_define(DisplayChangeListener *dcl,

                                 QEMUCursor *c)

{

    SimpleSpiceDisplay *ssd = container_of(dcl, SimpleSpiceDisplay, dcl);



    qemu_mutex_lock(&ssd->lock);

    if (c) {

        cursor_get(c);

    }

    cursor_put(ssd->cursor);

    ssd->cursor = c;

    ssd->hot_x = c->hot_x;

    ssd->hot_y = c->hot_y;

    g_free(ssd->ptr_move);

    ssd->ptr_move = NULL;

    g_free(ssd->ptr_define);

    ssd->ptr_define = qemu_spice_create_cursor_update(ssd, c, 0);

    qemu_mutex_unlock(&ssd->lock);

}

static void display_mouse_define(DisplayChangeListener *dcl,

                                 QEMUCursor *c)

{

    SimpleSpiceDisplay *ssd = container_of(dcl, SimpleSpiceDisplay, dcl);



    qemu_mutex_lock(&ssd->lock);

    if (c) {

        cursor_get(c);

    }

    cursor_put(ssd->cursor);

    ssd->cursor = c;

    ssd->hot_x = c->hot_x;

    ssd->hot_y = c->hot_y;

    g_free(ssd->ptr_move);

    ssd->ptr_move = NULL;

    g_free(ssd->ptr_define);

    ssd->ptr_define = qemu_spice_create_cursor_update(ssd, c, 0);

    qemu_mutex_unlock(&ssd->lock);

}

static void FUNC_0(DisplayChangeListener *VAR_0,

                                 QEMUCursor *VAR_1)

{

    SimpleSpiceDisplay *ssd = container_of(VAR_0, SimpleSpiceDisplay, VAR_0);



    qemu_mutex_lock(&ssd->lock);

    if (VAR_1) {

        cursor_get(VAR_1);

    }

    cursor_put(ssd->cursor);

    ssd->cursor = VAR_1;

    ssd->hot_x = VAR_1->hot_x;

    ssd->hot_y = VAR_1->hot_y;

    g_free(ssd->ptr_move);

    ssd->ptr_move = NULL;

    g_free(ssd->ptr_define);

    ssd->ptr_define = qemu_spice_create_cursor_update(ssd, VAR_1, 0);

    qemu_mutex_unlock(&ssd->lock);

}

static void FUNC_0(DisplayChangeListener *VAR_0,
QEMUCursor *VAR_1)
{ SimpleSpiceDisplay *ssd = container_of(VAR_0, SimpleSpiceDisplay, VAR_0); qemu_mutex_lock(&ssd->lock); if (VAR_1) { cursor_get(VAR_1); } cursor_put(ssd->cursor); ssd->cursor = VAR_1; ssd->hot_x = VAR_1->hot_x; ssd->hot_y = VAR_1->hot_y; g_free(ssd->ptr_move); ssd->ptr_move = NULL; g_free(ssd->ptr_define); ssd->ptr_define = qemu_spice_create_cursor_update(ssd, VAR_1, 0); qemu_mutex_unlock(&ssd->lock); }