static void multiwrite_user_cb(MultiwriteCB *mcb)

{

    int i;



    for (i = 0; i < mcb->num_callbacks; i++) {

        mcb->callbacks[i].cb(mcb->callbacks[i].opaque, mcb->error);

        if (mcb->callbacks[i].free_qiov) {

            qemu_iovec_destroy(mcb->callbacks[i].free_qiov);

        }

        g_free(mcb->callbacks[i].free_qiov);

    }

}

static void multiwrite_user_cb(MultiwriteCB *mcb)

{

    int i;



    for (i = 0; i < mcb->num_callbacks; i++) {

        mcb->callbacks[i].cb(mcb->callbacks[i].opaque, mcb->error);

        if (mcb->callbacks[i].free_qiov) {

            qemu_iovec_destroy(mcb->callbacks[i].free_qiov);

        }

        g_free(mcb->callbacks[i].free_qiov);

    }

}

static void FUNC_0(MultiwriteCB *VAR_0)

{

    int VAR_1;



    for (VAR_1 = 0; VAR_1 < VAR_0->num_callbacks; VAR_1++) {

        VAR_0->callbacks[VAR_1].cb(VAR_0->callbacks[VAR_1].opaque, VAR_0->error);

        if (VAR_0->callbacks[VAR_1].free_qiov) {

            qemu_iovec_destroy(VAR_0->callbacks[VAR_1].free_qiov);

        }

        g_free(VAR_0->callbacks[VAR_1].free_qiov);

    }

}

static void FUNC_0(MultiwriteCB *VAR_0)
{ int VAR_1; for (VAR_1 = 0; VAR_1 < VAR_0->num_callbacks; VAR_1++) { VAR_0->callbacks[VAR_1].cb(VAR_0->callbacks[VAR_1].opaque, VAR_0->error); if (VAR_0->callbacks[VAR_1].free_qiov) { qemu_iovec_destroy(VAR_0->callbacks[VAR_1].free_qiov); } g_free(VAR_0->callbacks[VAR_1].free_qiov); } }