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

{

    BlockJob *job = find_block_job(device);



    if (!job) {

        error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device);

        return;

    }



    block_job_set_speed(job, speed, errp);

}

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

{

    BlockJob *job = find_block_job(device);



    if (!job) {

        error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device);

        return;

    }



    block_job_set_speed(job, speed, errp);

}

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_BLOCK_JOB_NOT_ACTIVE, VAR_0);

        return;

    }



    block_job_set_speed(job, VAR_1, VAR_2);

}

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_BLOCK_JOB_NOT_ACTIVE, VAR_0); return; } block_job_set_speed(job, VAR_1, VAR_2); }