static void qxl_spice_destroy_surfaces(PCIQXLDevice *qxl, qxl_async_io async)

{

    if (async) {

#if SPICE_INTERFACE_QXL_MINOR < 1

        abort();

#else

        spice_qxl_destroy_surfaces_async(&qxl->ssd.qxl, 0);

#endif

    } else {

        qxl->ssd.worker->destroy_surfaces(qxl->ssd.worker);

        qxl_spice_destroy_surfaces_complete(qxl);

    }

}

static void qxl_spice_destroy_surfaces(PCIQXLDevice *qxl, qxl_async_io async)

{

    if (async) {

#if SPICE_INTERFACE_QXL_MINOR < 1

        abort();

#else

        spice_qxl_destroy_surfaces_async(&qxl->ssd.qxl, 0);

#endif

    } else {

        qxl->ssd.worker->destroy_surfaces(qxl->ssd.worker);

        qxl_spice_destroy_surfaces_complete(qxl);

    }

}

static void FUNC_0(PCIQXLDevice *VAR_0, qxl_async_io VAR_1)

{

    if (VAR_1) {

#if SPICE_INTERFACE_QXL_MINOR < 1

        abort();

#else

        spice_qxl_destroy_surfaces_async(&VAR_0->ssd.VAR_0, 0);

#endif

    } else {

        VAR_0->ssd.worker->destroy_surfaces(VAR_0->ssd.worker);

        qxl_spice_destroy_surfaces_complete(VAR_0);

    }

}

static void FUNC_0(PCIQXLDevice *VAR_0, qxl_async_io VAR_1)
{ if (VAR_1) { #if SPICE_INTERFACE_QXL_MINOR < 1
abort(); #else
spice_qxl_destroy_surfaces_async(&VAR_0->ssd.VAR_0, 0); #endif
} else { VAR_0->ssd.worker->destroy_surfaces(VAR_0->ssd.worker); qxl_spice_destroy_surfaces_complete(VAR_0); } }