void qemu_spice_create_host_primary(SimpleSpiceDisplay *ssd)

{

    QXLDevSurfaceCreate surface;



    memset(&surface, 0, sizeof(surface));



    dprint(1, "%s/%d: %dx%d\n", __func__, ssd->qxl.id,

           surface_width(ssd->ds), surface_height(ssd->ds));



    surface.format     = SPICE_SURFACE_FMT_32_xRGB;

    surface.width      = surface_width(ssd->ds);

    surface.height     = surface_height(ssd->ds);

    surface.stride     = -surface.width * 4;

    surface.mouse_mode = true;

    surface.flags      = 0;

    surface.type       = 0;

    surface.mem        = (uintptr_t)ssd->buf;

    surface.group_id   = MEMSLOT_GROUP_HOST;



    qemu_spice_create_primary_surface(ssd, 0, &surface, QXL_SYNC);

}

void qemu_spice_create_host_primary(SimpleSpiceDisplay *ssd)

{

    QXLDevSurfaceCreate surface;



    memset(&surface, 0, sizeof(surface));



    dprint(1, "%s/%d: %dx%d\n", __func__, ssd->qxl.id,

           surface_width(ssd->ds), surface_height(ssd->ds));



    surface.format     = SPICE_SURFACE_FMT_32_xRGB;

    surface.width      = surface_width(ssd->ds);

    surface.height     = surface_height(ssd->ds);

    surface.stride     = -surface.width * 4;

    surface.mouse_mode = true;

    surface.flags      = 0;

    surface.type       = 0;

    surface.mem        = (uintptr_t)ssd->buf;

    surface.group_id   = MEMSLOT_GROUP_HOST;



    qemu_spice_create_primary_surface(ssd, 0, &surface, QXL_SYNC);

}

    dprint(1, "%s/%d: %dx%d\n", __func__, ssd->qxl.id,            surface_width(ssd->ds), surface_height(ssd->ds));
void FUNC_0(SimpleSpiceDisplay *VAR_0)

{

    QXLDevSurfaceCreate surface;



    memset(&surface, 0, sizeof(surface));



    dprint(1, "%s/%d: %dx%d\n", __func__, VAR_0->qxl.id,

           surface_width(VAR_0->ds), surface_height(VAR_0->ds));



    surface.format     = SPICE_SURFACE_FMT_32_xRGB;

    surface.width      = surface_width(VAR_0->ds);

    surface.height     = surface_height(VAR_0->ds);

    surface.stride     = -surface.width * 4;

    surface.mouse_mode = true;

    surface.flags      = 0;

    surface.type       = 0;

    surface.mem        = (uintptr_t)VAR_0->buf;

    surface.group_id   = MEMSLOT_GROUP_HOST;



    qemu_spice_create_primary_surface(VAR_0, 0, &surface, QXL_SYNC);

}

void FUNC_0(SimpleSpiceDisplay *VAR_0)
{ QXLDevSurfaceCreate surface; memset(&surface, 0, sizeof(surface)); dprint(1, "%s/%d: %dx%d\n", __func__, VAR_0->qxl.id,
surface_width(VAR_0->ds), surface_height(VAR_0->ds)); surface.format     = SPICE_SURFACE_FMT_32_xRGB; surface.width      = surface_width(VAR_0->ds); surface.height     = surface_height(VAR_0->ds); surface.stride     = -surface.width * 4; surface.mouse_mode = true; surface.flags      = 0; surface.type       = 0; surface.mem        = (uintptr_t)VAR_0->buf; surface.group_id   = MEMSLOT_GROUP_HOST; qemu_spice_create_primary_surface(VAR_0, 0, &surface, QXL_SYNC); }