int bdrv_snapshot_load_tmp(BlockDriverState *bs,

        const char *snapshot_name)

{

    BlockDriver *drv = bs->drv;

    if (!drv) {

        return -ENOMEDIUM;

    }

    if (!bs->read_only) {

        return -EINVAL;

    }

    if (drv->bdrv_snapshot_load_tmp) {

        return drv->bdrv_snapshot_load_tmp(bs, snapshot_name);

    }

    return -ENOTSUP;

}

int bdrv_snapshot_load_tmp(BlockDriverState *bs,

        const char *snapshot_name)

{

    BlockDriver *drv = bs->drv;

    if (!drv) {

        return -ENOMEDIUM;

    }

    if (!bs->read_only) {

        return -EINVAL;

    }

    if (drv->bdrv_snapshot_load_tmp) {

        return drv->bdrv_snapshot_load_tmp(bs, snapshot_name);

    }

    return -ENOTSUP;

}

int FUNC_0(BlockDriverState *VAR_0,

        const char *VAR_1)

{

    BlockDriver *drv = VAR_0->drv;

    if (!drv) {

        return -ENOMEDIUM;

    }

    if (!VAR_0->read_only) {

        return -EINVAL;

    }

    if (drv->FUNC_0) {

        return drv->FUNC_0(VAR_0, VAR_1);

    }

    return -ENOTSUP;

}

int FUNC_0(BlockDriverState *VAR_0,
const char *VAR_1)
{ BlockDriver *drv = VAR_0->drv; if (!drv) { return -ENOMEDIUM; } if (!VAR_0->read_only) { return -EINVAL; } if (drv->FUNC_0) { return drv->FUNC_0(VAR_0, VAR_1); } return -ENOTSUP; }