static void check_pointer_type_change(Notifier *notifier, void *data)

{

    VncState *vs = container_of(notifier, VncState, mouse_mode_notifier);

    int absolute = qemu_input_is_absolute();



    if (vnc_has_feature(vs, VNC_FEATURE_POINTER_TYPE_CHANGE) && vs->absolute != absolute) {

        vnc_lock_output(vs);

        vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE);

        vnc_write_u8(vs, 0);

        vnc_write_u16(vs, 1);

        vnc_framebuffer_update(vs, absolute, 0,

                               surface_width(vs->vd->ds),

                               surface_height(vs->vd->ds),

                               VNC_ENCODING_POINTER_TYPE_CHANGE);

        vnc_unlock_output(vs);

        vnc_flush(vs);

    }

    vs->absolute = absolute;

}

static void check_pointer_type_change(Notifier *notifier, void *data)

{

    VncState *vs = container_of(notifier, VncState, mouse_mode_notifier);

    int absolute = qemu_input_is_absolute();



    if (vnc_has_feature(vs, VNC_FEATURE_POINTER_TYPE_CHANGE) && vs->absolute != absolute) {

        vnc_lock_output(vs);

        vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE);

        vnc_write_u8(vs, 0);

        vnc_write_u16(vs, 1);

        vnc_framebuffer_update(vs, absolute, 0,

                               surface_width(vs->vd->ds),

                               surface_height(vs->vd->ds),

                               VNC_ENCODING_POINTER_TYPE_CHANGE);

        vnc_unlock_output(vs);

        vnc_flush(vs);

    }

    vs->absolute = absolute;

}

                               surface_width(vs->vd->ds),                                surface_height(vs->vd->ds),                                surface_width(vs->vd->ds),                                surface_height(vs->vd->ds),
static void FUNC_0(Notifier *VAR_0, void *VAR_1)

{

    VncState *vs = container_of(VAR_0, VncState, mouse_mode_notifier);

    int VAR_2 = qemu_input_is_absolute();



    if (vnc_has_feature(vs, VNC_FEATURE_POINTER_TYPE_CHANGE) && vs->VAR_2 != VAR_2) {

        vnc_lock_output(vs);

        vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE);

        vnc_write_u8(vs, 0);

        vnc_write_u16(vs, 1);

        vnc_framebuffer_update(vs, VAR_2, 0,

                               surface_width(vs->vd->ds),

                               surface_height(vs->vd->ds),

                               VNC_ENCODING_POINTER_TYPE_CHANGE);

        vnc_unlock_output(vs);

        vnc_flush(vs);

    }

    vs->VAR_2 = VAR_2;

}

static void FUNC_0(Notifier *VAR_0, void *VAR_1)
{ VncState *vs = container_of(VAR_0, VncState, mouse_mode_notifier); int VAR_2 = qemu_input_is_absolute(); if (vnc_has_feature(vs, VNC_FEATURE_POINTER_TYPE_CHANGE) && vs->VAR_2 != VAR_2) { vnc_lock_output(vs); vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(vs, 0); vnc_write_u16(vs, 1); vnc_framebuffer_update(vs, VAR_2, 0,
surface_width(vs->vd->ds),
surface_height(vs->vd->ds),
VNC_ENCODING_POINTER_TYPE_CHANGE); vnc_unlock_output(vs); vnc_flush(vs); } vs->VAR_2 = VAR_2; }