ui: rename cursor_{put->unref}

The naming is more conventional in QEMU.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Marc-André Lureau 2023-01-17 15:07:02 +04:00
parent 1222070e77
commit f4579e2899
8 changed files with 11 additions and 11 deletions

View file

@ -111,7 +111,7 @@ void cursor_get(QEMUCursor *c)
c->refcount++;
}
void cursor_put(QEMUCursor *c)
void cursor_unref(QEMUCursor *c)
{
if (c == NULL)
return;

View file

@ -345,7 +345,7 @@ static void dbus_cursor_define(DisplayChangeListener *dcl,
c->data,
c->width * c->height * 4,
TRUE,
(GDestroyNotify)cursor_put,
(GDestroyNotify)cursor_unref,
c);
qemu_dbus_display1_listener_call_cursor_define(

View file

@ -464,7 +464,7 @@ void qemu_spice_cursor_refresh_bh(void *opaque)
qemu_mutex_unlock(&ssd->lock);
dpy_cursor_define(ssd->dcl.con, c);
qemu_mutex_lock(&ssd->lock);
cursor_put(c);
cursor_unref(c);
}
if (ssd->mouse_x != -1 && ssd->mouse_y != -1) {
@ -766,7 +766,7 @@ static void display_mouse_define(DisplayChangeListener *dcl,
qemu_mutex_lock(&ssd->lock);
cursor_get(c);
cursor_put(ssd->cursor);
cursor_unref(ssd->cursor);
ssd->cursor = c;
ssd->hot_x = c->hot_x;
ssd->hot_y = c->hot_y;

View file

@ -1029,7 +1029,7 @@ static void vnc_dpy_cursor_define(DisplayChangeListener *dcl,
VncDisplay *vd = container_of(dcl, VncDisplay, dcl);
VncState *vs;
cursor_put(vd->cursor);
cursor_unref(vd->cursor);
g_free(vd->cursor_mask);
vd->cursor = c;