void qmp_block_job_set_speed(const char *device, int64_t value, Error **errp)

{

    BlockJob *job = find_block_job(device);



    if (!job) {

        error_set(errp, QERR_DEVICE_NOT_ACTIVE, device);

        return;

    }



    if (block_job_set_speed(job, value) < 0) {

        error_set(errp, QERR_NOT_SUPPORTED);

    }

}

void qmp_block_job_set_speed(const char *device, int64_t value, Error **errp)

{

    BlockJob *job = find_block_job(device);



    if (!job) {

        error_set(errp, QERR_DEVICE_NOT_ACTIVE, device);

        return;

    }



    if (block_job_set_speed(job, value) < 0) {

        error_set(errp, QERR_NOT_SUPPORTED);

    }

}

void FUNC_0(const char *VAR_0, int64_t VAR_1, Error **VAR_2)

{

    BlockJob *job = find_block_job(VAR_0);



    if (!job) {

        error_set(VAR_2, QERR_DEVICE_NOT_ACTIVE, VAR_0);

        return;

    }



    if (block_job_set_speed(job, VAR_1) < 0) {

        error_set(VAR_2, QERR_NOT_SUPPORTED);

    }

}

void FUNC_0(const char *VAR_0, int64_t VAR_1, Error **VAR_2)
{ BlockJob *job = find_block_job(VAR_0); if (!job) { error_set(VAR_2, QERR_DEVICE_NOT_ACTIVE, VAR_0); return; } if (block_job_set_speed(job, VAR_1) < 0) { error_set(VAR_2, QERR_NOT_SUPPORTED); } }