void stream_start(BlockDriverState *bs, BlockDriverState *base,

                  const char *base_id, BlockDriverCompletionFunc *cb,

                  void *opaque, Error **errp)

{

    StreamBlockJob *s;

    Coroutine *co;



    s = block_job_create(&stream_job_type, bs, cb, opaque, errp);

    if (!s) {

        return;

    }



    s->base = base;

    if (base_id) {

        pstrcpy(s->backing_file_id, sizeof(s->backing_file_id), base_id);

    }



    co = qemu_coroutine_create(stream_run);

    trace_stream_start(bs, base, s, co, opaque);

    qemu_coroutine_enter(co, s);

}

void stream_start(BlockDriverState *bs, BlockDriverState *base,

                  const char *base_id, BlockDriverCompletionFunc *cb,

                  void *opaque, Error **errp)

{

    StreamBlockJob *s;

    Coroutine *co;



    s = block_job_create(&stream_job_type, bs, cb, opaque, errp);

    if (!s) {

        return;

    }



    s->base = base;

    if (base_id) {

        pstrcpy(s->backing_file_id, sizeof(s->backing_file_id), base_id);

    }



    co = qemu_coroutine_create(stream_run);

    trace_stream_start(bs, base, s, co, opaque);

    qemu_coroutine_enter(co, s);

}

void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,

                  const char *VAR_2, BlockDriverCompletionFunc *VAR_3,

                  void *VAR_4, Error **VAR_5)

{

    StreamBlockJob *s;

    Coroutine *co;



    s = block_job_create(&stream_job_type, VAR_0, VAR_3, VAR_4, VAR_5);

    if (!s) {

        return;

    }



    s->VAR_1 = VAR_1;

    if (VAR_2) {

        pstrcpy(s->backing_file_id, sizeof(s->backing_file_id), VAR_2);

    }



    co = qemu_coroutine_create(stream_run);

    trace_stream_start(VAR_0, VAR_1, s, co, VAR_4);

    qemu_coroutine_enter(co, s);

}

void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,
const char *VAR_2, BlockDriverCompletionFunc *VAR_3,
void *VAR_4, Error **VAR_5)
{ StreamBlockJob *s; Coroutine *co; s = block_job_create(&stream_job_type, VAR_0, VAR_3, VAR_4, VAR_5); if (!s) { return; } s->VAR_1 = VAR_1; if (VAR_2) { pstrcpy(s->backing_file_id, sizeof(s->backing_file_id), VAR_2); } co = qemu_coroutine_create(stream_run); trace_stream_start(VAR_0, VAR_1, s, co, VAR_4); qemu_coroutine_enter(co, s); }