void qemu_spice_create_primary_surface(SimpleSpiceDisplay *ssd, uint32_t id,

                                       QXLDevSurfaceCreate *surface,

                                       qxl_async_io async)

{

    if (async != QXL_SYNC) {

#if SPICE_INTERFACE_QXL_MINOR >= 1

        spice_qxl_create_primary_surface_async(&ssd->qxl, id, surface, 0);

#else

        abort();

#endif

    } else {

        ssd->worker->create_primary_surface(ssd->worker, id, surface);

    }

}

void qemu_spice_create_primary_surface(SimpleSpiceDisplay *ssd, uint32_t id,

                                       QXLDevSurfaceCreate *surface,

                                       qxl_async_io async)

{

    if (async != QXL_SYNC) {

#if SPICE_INTERFACE_QXL_MINOR >= 1

        spice_qxl_create_primary_surface_async(&ssd->qxl, id, surface, 0);

#else

        abort();

#endif

    } else {

        ssd->worker->create_primary_surface(ssd->worker, id, surface);

    }

}

void FUNC_0(SimpleSpiceDisplay *VAR_0, uint32_t VAR_1,

                                       QXLDevSurfaceCreate *VAR_2,

                                       qxl_async_io VAR_3)

{

    if (VAR_3 != QXL_SYNC) {

#if SPICE_INTERFACE_QXL_MINOR >= 1

        spice_qxl_create_primary_surface_async(&VAR_0->qxl, VAR_1, VAR_2, 0);

#else

        abort();

#endif

    } else {

        VAR_0->worker->create_primary_surface(VAR_0->worker, VAR_1, VAR_2);

    }

}

void FUNC_0(SimpleSpiceDisplay *VAR_0, uint32_t VAR_1,
QXLDevSurfaceCreate *VAR_2,
qxl_async_io VAR_3)
{ if (VAR_3 != QXL_SYNC) { #if SPICE_INTERFACE_QXL_MINOR >= 1
spice_qxl_create_primary_surface_async(&VAR_0->qxl, VAR_1, VAR_2, 0); #else
abort(); #endif
} else { VAR_0->worker->create_primary_surface(VAR_0->worker, VAR_1, VAR_2); } }