int do_eject(Monitor *mon, const QDict *qdict, QObject **ret_data)

{

    BlockDriverState *bs;

    int force = qdict_get_int(qdict, "force");

    const char *filename = qdict_get_str(qdict, "device");



    bs = bdrv_find(filename);

    if (!bs) {

        qerror_report(QERR_DEVICE_NOT_FOUND, filename);

        return -1;

    }

    return eject_device(mon, bs, force);

}

int do_eject(Monitor *mon, const QDict *qdict, QObject **ret_data)

{

    BlockDriverState *bs;

    int force = qdict_get_int(qdict, "force");

    const char *filename = qdict_get_str(qdict, "device");



    bs = bdrv_find(filename);

    if (!bs) {

        qerror_report(QERR_DEVICE_NOT_FOUND, filename);

        return -1;

    }

    return eject_device(mon, bs, force);

}

int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)

{

    BlockDriverState *bs;

    int VAR_3 = qdict_get_int(VAR_1, "VAR_3");

    const char *VAR_4 = qdict_get_str(VAR_1, "device");



    bs = bdrv_find(VAR_4);

    if (!bs) {

        qerror_report(QERR_DEVICE_NOT_FOUND, VAR_4);

        return -1;

    }

    return eject_device(VAR_0, bs, VAR_3);

}

int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)
{ BlockDriverState *bs; int VAR_3 = qdict_get_int(VAR_1, "VAR_3"); const char *VAR_4 = qdict_get_str(VAR_1, "device"); bs = bdrv_find(VAR_4); if (!bs) { qerror_report(QERR_DEVICE_NOT_FOUND, VAR_4); return -1; } return eject_device(VAR_0, bs, VAR_3); }